Skip to main content

A simple wrapper for customtkinter

Project description

eazyctk

A simplified wrapper for customtkinter to make GUI development faster and more intuitive.

Command Reference

Window Management

  • createWindow(Size, Title): Initializes the main window. This must be called before any other commands.
  • start(): Starts the application main loop. This must be called at the end of the file.

Theme Control

  • setTheme(theme): Sets the appearance mode to "Light", "Dark", or "System".
  • setThemeColor(themeclr): Sets the color theme (e.g., "green", "blue").
  • getTheme(): Returns the current appearance mode string ("Light" or "Dark").
  • toggleTheme(): Automatically switches between Dark and Light mode.

Containers & Layouts

  • createFrame(Name, x, y, width, height): Creates a static container box at an exact absolute x, y coordinate position.
  • createScrollableFrame(Name, x, y, width, height, type): Creates an absolute-position friendly scrolling container. Axis type options can be "vertical", "horizontal", or "both".

UI Elements

  • createLabel(Name, Text, x, y, wrap, FrameName): Creates a label at a specific position with a defined text wrap width.
  • createButton(Name, Text, Command, x, y, FrameName, ImagePath, ImageSize): Creates a button at a specific position that executes the provided command. Can optionally accept an image icon background.
  • createImage(Name, ImagePath, x, y, Size, FrameName): Creates a standalone image widget at an exact absolute coordinate position.
  • createEntry(Name, x, y, Placeholder, FrameName): Creates a single-line text input field at a specific position.
  • createTextbox(Name, x, y, width, height, FrameName): Creates an interactive, editable multi-line text input area.
  • createCheckbox(Name, Text, x, y, Command, FrameName): Creates a checkbox at a specific position that can trigger a command.
  • createDropdown(Name, options, x, y, cmd, FrameName): Creates a dropdown menu at a specific position with a list of options.
  • createScrollableLabel(Name, Text, x, y, width, height, FrameName): Creates a Up to down scrollable text box area for displaying multi-line readouts.
  • delayWithoutFreeze(ms, command): Delays before the specified command is executed without freezing. (DONT PUT "()" OR ELSE IT WILL EXECUTE IMMEDIATELY WITHOUT DELAY)

Getting & Updating Data

  • getValue(Name): Returns the current string inside an entry widget.
  • getTextboxValue(Name): Returns the complete body text currently written inside the specified textbox.
  • isChecked(Name): Returns True if the checkbox with the given name is checked, otherwise returns False.
  • getDropdownValue(Name): Returns the currently selected option from the specified dropdown.
  • updateLabel(Name, NewText): Changes the text of an existing label to the new string.
  • updateScrollableLabel(Name, NewText): Changes the text of an existing scrollable label to the new string.
  • updateTextboxValue(Name, NewText): Clears the target textbox completely and populates it with new string text.
  • updateTextButton(Name, NewText): Changes the text displayed on an existing button.
  • updateCheckboxText(Name, NewText): Changes the text displayed on an existing checkbox.
  • updateImage(Name, ImagePath, Size): Updates the file path source and optionally the size dimensions of an existing image widget.
  • updateWindowSize(scale): Changes the window size specifications dynamically.
  • updateWindowTitle(newtitle): Changes the header string title from the window surface.

Visibility & Layout Controls

  • setVisible(Type, Name, State): Makes any layout widget completely invisible (State=False) or restores it to its position (State=True) using stored coordinates. Supported types are: 'label', 'button', 'entry', 'checkbox', 'textbox', 'dropdown', 'frame', or 'scrollframe'.
  • hideObject(Type, Name): Shortcut helper function to quickly turn an element invisible.
  • showObject(Type, Name): Shortcut helper function to quickly restore an invisible element back onto the screen.
  • getVisible(Type, Name): Returns True if the specified element is actively visible on the screen, or False if it is currently hidden.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eazyctk-0.2.3.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eazyctk-0.2.3-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file eazyctk-0.2.3.tar.gz.

File metadata

  • Download URL: eazyctk-0.2.3.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for eazyctk-0.2.3.tar.gz
Algorithm Hash digest
SHA256 1f66e81566a149538e15e8aa8029212423ede10890dadbdceeda70ea394b923a
MD5 926de4cec29324dd1a15776160ea87df
BLAKE2b-256 5d2cbcb32098fcc55c18ab588710901b7681fa43d992f69e269faa3430c7194e

See more details on using hashes here.

File details

Details for the file eazyctk-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: eazyctk-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for eazyctk-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 23be4e2a3d3b6804bce618e43f7042a32ae47b6729ab8a8d47df99fa1b2343b8
MD5 3be73cd77489491d66fe81f97c3ce5d2
BLAKE2b-256 2bc069a474dd5de6950db1b73e4cdd4a314ee4f6ced058e43921019a1d6ec7c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page