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.

Buttons & menus#

Trigger actions and pop up menus.

Button

A clickable action trigger.

Button
Menubutton

A button that pops up a menu.

Menubutton
OptionMenu

A menu of options bound to a variable.

OptionMenu
Menu

The classic tk.Menu — menu bars, submenus, and context menus.

Menu

Text & entry#

Type and edit text and values.

Entry

A single-line text field.

Entry
Spinbox

A field with up/down value steppers.

Spinbox
Combobox

A drop-down with an editable field.

Combobox
DateEntry

An entry with a calendar-popup date picker.

DateEntry
Text

The classic tk.Text widget — its full options and methods.

Text

Selection & toggles#

Pick from options and flip state.

Checkbutton

A labeled on/off toggle.

Checkbutton
Radiobutton

A one-of-many selector.

Radiobutton
Listbox

The classic tk.Listbox — a list of selectable lines.

Listbox

Range & progress#

Show or set a value along a range.

Scale

A slider for a numeric range.

Scale
LabeledScale

A scale paired with a value label.

LabeledScale
Progressbar

A determinate or indeterminate progress bar.

Progressbar
Meter

A radial progress/dial widget.

Meter
Floodgauge

A progress bar with text drawn over the fill.

Floodgauge

Data views#

Display rows and hierarchies of data.

Treeview

A tree/table of items.

Treeview
Tableview

A data table with sorting, filtering, and paging.

Tableview

Layout & containers#

Structure the window and hold other widgets.

Frame

A container for layout.

Frame
Labelframe

A frame with a caption.

Labelframe
Notebook

A tabbed container.

Notebook
Panedwindow

Resizable split panes.

Panedwindow
Scrollbar

Drives another widget’s view.

Scrollbar
Separator

A dividing line.

Separator
Sizegrip

A window resize handle.

Sizegrip
Tk

The classic tk.Tk root window and its window-manager surface.

Tk
TkFrame

The classic tk.Frame container.

TkFrame

Display & drawing#

Show text, images, and custom graphics.

Label

Text, an image, or both.

Label
TkLabel

The classic tk.Label — text, image, or both.

TkLabel
Canvas

The classic tk.Canvas drawing surface — items, tags, and their methods.

Canvas