table lists only widget classes; along the way, we will also meet a few additional widget-
related topics that don’t appear in this table.
Table 7-1. tkinter widget classes
Widget class Description
Label A simple message area
Button A simple labeled push-button widget
Frame A container for attaching and arranging other widget objects
Toplevel, Tk A new window managed by the window manager
Message A multiline label
Entry A simple single-line text-entry field
Checkbutton A two-state button widget, typically used for multiple-choice selections
Radiobutton A two-state button widget, typically used for single-choice selections
Scale A slider widget with scalable positions
PhotoImage An image object used for displaying full-color images on other widgets
BitmapImage An image object used for displaying bitmap images on other widgets
Menu A set of options associated with a Menubutton or top-level window
Menubutton A button that opens a Menu of selectable options and submenus
Scrollbar A control for scrolling other widgets (e.g., listbox, canvas, text)
Listbox A list of selection names
Text A multiline text browse/edit widget, with support for fonts, and so on
Canvas A graphic drawing area, which supports lines, circles, photos, text, and so on
We’ve already met Label, Button, and Frame in this chapter’s tutorial. To make the
remaining topics easier to absorb, they are split over the next two chapters: Chap-
ter 8 covers the first widgets in this table up to but not including Menu, and Chapter 9
presents widgets that are lower in this table.
Besides the widget classes in this table, there are additional classes and tools in the
tkinter library, many of which we’ll explore in the following two chapters as well:
Geometry management
pack, grid, place
tkinter linked variables
StringVar, IntVar, DoubleVar, BooleanVar
Advanced Tk widgets
Spinbox, LabelFrame, PanedWindow
Composite widgets
Dialog, ScrolledText, OptionMenu
The End of the Tutorial | 411