First page Back Continue Last page Overview Graphics
Code Walkthrough
-
Each supported toolkit is encapsulated in its own class.
main() constructs an object of each toolkit type
During construction, each object:
- Calls initializeWidgets(self) which returns generated title
- Creates the 'top level' (main application) window
- Sets the title of the top level window
- Calls buildGui() to build the window hierarchy and set up the event handlers [_buttonPressed(), _textEntered()]
- Shows the top level window
- Starts the main event loop
NOTE: Only Tkinter and wxPython are implemented at this time;
PyGtk, PyQt, and FxPy are under construction
Notes: