Widgets#
The complete reference for every widget — its options, methods, and (for ttk
widgets) styling. It covers the native ttk widgets ttkbootstrap themes, the
widgets it ships, and the classic tk widgets it themes; each page names
which it is. Python’s standard library documents these incompletely — or, for
widgets like Text and Canvas, not at all — so this reference is
maintained here. Pages are grouped by what the widget does.
Text & entry#
Type and edit text and values.
A single-line text field.
A field with up/down value steppers.
A drop-down with an editable field.
An entry with a calendar-popup date picker.
The classic tk.Text widget — its full options and methods.
Selection & toggles#
Pick from options and flip state.
A labeled on/off toggle.
A one-of-many selector.
The classic tk.Listbox — a list of selectable lines.
Range & progress#
Show or set a value along a range.
A slider for a numeric range.
A scale paired with a value label.
A determinate or indeterminate progress bar.
A radial progress/dial widget.
A progress bar with text drawn over the fill.
Data views#
Display rows and hierarchies of data.
A tree/table of items.
A data table with sorting, filtering, and paging.
Layout & containers#
Structure the window and hold other widgets.
A container for layout.
A frame with a caption.
A tabbed container.
Resizable split panes.
Drives another widget’s view.
A dividing line.
A window resize handle.
The classic tk.Tk root window and its window-manager surface.
The classic tk.Frame container.
Display & drawing#
Show text, images, and custom graphics.
Text, an image, or both.
The classic tk.Label — text, image, or both.
The classic tk.Canvas drawing surface — items, tags, and their methods.