Skip to Main Content
Python Programming On Win32
book

Python Programming On Win32

by Andy Robinson, Mark Hammond
January 2000
Intermediate to advanced content levelIntermediate to advanced
672 pages
21h 46m
English
O'Reilly Media, Inc.
Content preview from Python Programming On Win32

Widgets

Core widgets

Tkinter implements a fairly small set of core widgets, from which other widgets or complete applications can be based. Table 20.1 lists these core widgets with a short description of how they are used.

Table 20.1. Core Tkinter Widgets

Widget Name

Description

Toplevel

Toplevel widgets are special in that they have no master widget and don’t support any of the geometry-management methods (as discussed later). All other widgets are directly or indirectly associated with a Toplevel widget.

Frame

Used as a container widget for other child widgets. For instance, the tkDemo example consists of a number of frames within frames within frames to achieve its particular layout.

Label

Displays text or images.

Message

Displays text with automatic line-break and justification capabilities.

Text

Displays text with advanced formatting, editing, and highly interactive capabilities.

Canvas

Displays graphical items from a display list, with highly interactive capabilities.

Button, Checkbox, Entry, Scale, Radiobutton, List box, Scrollbar

Standard simple entry widgets, also known as the control widgets.

Menu, Menubutton

Widgets for implementing and responding to menus.

Quite a few of these widgets are demonstrated in the tkBrowser sample, and every one gets an exercise in the tkDemo sample, so you are encouraged to experiment with these samples to get a feel for the capabilities of each widget. Of these widgets, we will discuss two of the most popular and powerful ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Advanced Python Programming - Second Edition

Advanced Python Programming - Second Edition

Quan Nguyen

Publisher Resources

ISBN: 1565926218Supplemental ContentErrata Page