Skip to main content

tkinterex

A package that adds extension features to tkinter.

Installation

pip install tkinterex

Components

EntryEx

A ttk.Entry subclass that manages its own StringVar internally, exposing a simple value property.

from tkinterex import EntryEx

entry = EntryEx(master)
entry.value = "hello"
print(entry.value)  # "hello"
Member Type Description
value str (property) Get or set the current text value.

CheckbuttonEx

A ttk.Checkbutton subclass that manages its own BooleanVar internally, exposing a simple value property.

from tkinterex import CheckbuttonEx

cb = CheckbuttonEx(master, text="Enable feature")
cb.value = True
print(cb.value)  # True
Member Type Description
value bool (property) Get or set the checked state.

ListboxEx

A Frame-based widget that wraps a Listbox with a vertical Scrollbar. All standard Listbox methods are transparently delegated.

from tkinterex import ListboxEx

lb = ListboxEx(master)
lb.insert("end", "item 1")
lb.insert("end", "item 2")

# Get/set selected items by value
print(lb.curselection_list)   # ["item 1"]
lb.curselection_list = ["item 2"]
Member Type Description
listbox Listbox The internal Listbox widget.
scrollbar Scrollbar The internal vertical Scrollbar.
curselection_list list[str] (property) Get or set the selected items by their string values.

show_modal_window

Displays a Toplevel window as a modal dialog, positioned near the parent window and clamped within the screen bounds.

from tkinterex import show_modal_window

dialog = Toplevel(root)
# ... build dialog contents ...
show_modal_window(root, dialog)
# execution resumes here after the dialog is closed
Parameter Type Description
parent Tk The parent window.
modal_window Toplevel The dialog window to display modally.

ListWindow

A ready-made modal Toplevel that presents a list of items and lets the user select one.

from tkinterex import ListWindow, show_modal_window

win = ListWindow(root, title="Choose an item", items=["Apple", "Banana", "Cherry"])
show_modal_window(root, win)

if win.selected_index is not None:
    print(f"Selected index: {win.selected_index}")
    print(f"Selected item:  {win.selected_item}")
Member Type Description
selected_index int | None Index of the selected item, or None if cancelled.
selected_item str | None Text of the selected item, or None if cancelled.

License

MIT

Metadata

Release files for tkinterex 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tkinterex 0.1.2
File Size Uploaded
tkinterex-0.1.2.tar.gz 40.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tkinterex 0.1.2
File Interpreter ABI Platform
tkinterex-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 45.5 kB

Release files / tkinterex-0.1.2.tar.gz

Download URL tkinterex-0.1.2.tar.gz
Size 40.6 kB
Tags Source
SHA-256 checksum
How to use checksums
755c41458b114bbba12b3dde49d49f25d01c7a00f660774834dfae3280e92842
BLAKE2b-256 checksum
How to use checksums
45be7964688f1ce1f5f03250b5b341d4aec3f73f0d864a0cb30b6acddc2fddc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / tkinterex-0.1.2-py3-none-any.whl

Download URL tkinterex-0.1.2-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b08f522eaec0833287e245e30abf4b38dc9ae3128e51107c7d3351a257081aa
BLAKE2b-256 checksum
How to use checksums
5b16612c197647f40be067429b2bbeae351c9f76a1a5e9a4999e9630f6de23fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

1.2.1

2 release files

1.2.0

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

0.1.3

2 release files

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page