PyDocs

Graphical user interfaces with Tk

tkinter.ttk

The tkinter.ttk module provides access to the Tk themed widget set, introduced in Tk 8.5. Its widgets adapt their appearance to the platform’s native theme, giving an application a better and more consistent look and feel than the classic tkinter widgets, whose appearance is fixed.
Symbols in tkinter.ttk

b

Button
Ttk Button widget, displays a textual label and/or image, and evaluates a command when pressed.

c

Checkbutton
Ttk Checkbutton widget, used to control a boolean variable that is toggled on and off.

e

Entry
Ttk Entry widget, displays a one-line text string and allows the user to edit it.

f

Frame
Ttk Frame widget, a container used to group and lay out other widgets.

l

Label
Ttk Label widget, displays a textual label and/or image.
LabeledScale
A Frame containing a Scale and a Label that shows the scale’s current value.
Labelframe
Ttk Labelframe widget, a container that draws a border and a title label around its contents.
LabelFrame
Alias of Labelframe, kept for naming compatibility with tkinter.LabelFrame.

m

Menubutton
Ttk Menubutton widget, displays a textual label and/or image, and pops up a menu when pressed.

o

OptionMenu
Ttk OptionMenu widget, a Menubutton that pops up a menu of mutually exclusive choices.

p

Panedwindow
Ttk Panedwindow widget, displays a number of subwindows stacked either vertically or horizontally.
PanedWindow
Alias of Panedwindow, kept for naming compatibility with tkinter.PanedWindow.

r

Radiobutton
Ttk Radiobutton widget, used as part of a group to control a single shared variable by selecting one of several mutually exclusive values.

s

Scale
Ttk Scale widget, displays a slider that lets the user select a numeric value from a range by moving the slider along a trough.
Scrollbar
Ttk Scrollbar widget, controls the viewport of an associated scrollable widget such as a Treeview, Entry or tkinter.Text.
Separator
Ttk Separator widget, displays a horizontal or vertical separator line.
Sizegrip
Ttk Sizegrip widget, displays a grip that allows the user to resize the containing toplevel window by pressing and dragging the grip, typically placed in the bottom-right corner.
Spinbox
With a non-integer increment, see numeric values and the locale.
Style
This class is used to manipulate the style database.

w

Widget
statespec will usually be a list or a tuple.