Next: BriefTclTk |
Previous: HelloWorld |
Contents
An Overview of The Tkinter Classes
The class hierarchy looks complicated, but in actual practice,
application programmers almost always refer to the classes at the very
bottom of the hierarchy.
Here are links [which ought to be embedded in the graphic; eventually]
to the interfaces for each of the concrete widgets:
Button
Canvas
Checkbutton
Entry
Frame
Label
Listbox
Menu
Menubutton
Message
*Misc
*Pack
*Place
Radiobutton
Scale
Scrollbar
Text
**Tk
Toplevel
***Widget
*Wm
Notes:
- * These classes are provided for the purposes of
organizing certain functions under one namespace. They aren't meant to
be instantiated independently.
- ** The Tk class is meant to be instantiated only once in
an application. Application programmers need not instantiate one
explicitly, the system creates one whenever any of the other classes
are instantiated.
- *** The Widget class is not meant to be instantiated, it
is meant only for subclassing to make ``real'' widgets. (in C++, this
is called an `abstract class')