Up |
Previous: Hellow-world notes
This is a summary of the program and
the notes for it.
- Tkinter.py holds all the class descriptions for the Tk toolkit
- Applications are created by subclassing an existing widget. Frames
and Canvases are common choices from which to subclass.
- Callbacks to widgets can either be methods or regular functions.
- Widget constructors take a parameter that denotes the master of the new widget. A widget's master will control where the widget appears in the application and how large it is.
- The actual location and size of a widget is determined by the Packer.
- Before a widget appears on the screen, you must call either pack or place on it.
- somewidget.mainloop() starts the program running
- Other simple example programs can be found in a
example
tkinter programs repository