The End of the Tutorial
In this chapter, we have learned the core concepts of Python/Tkinter programming, and met a handful of simple widget objects along the way -- labels, buttons, frames, and the packer geometry manager. We’ve seen enough to construct simple interfaces, but have really only scratched the surface of the Tkinter widget set.
In the next two chapters, we will apply what we’ve learned here to study the rest of the Tkinter library, and learn how to use it to generate the kinds of interfaces you expect to see in realistic GUI programs. As a preview and roadmap, Table 6-1 lists the kinds of widgets we’ll meet there, in roughly their order of appearance. Note that this 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 6-1. Tkinter Widget Classes
Widget Class |
Description |
---|---|
|
A simple message area |
|
A simple labeled pushbutton widget |
|
A container for attaching and arranging other widget objects |
|
A new window managed by the window manager |
|
A multiline label |
|
A simple single-line text-entry field |
|
A two-state button widget, typically used for multiple-choice selections |
|
A two-state button widget, typically used for single-choice selections |
|
A slider widget with scalable positions |
|
An image object used for displaying full-color images on other widgets |
|
Get Programming Python, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.