wxGlade Overview¶
Running wxGlade¶
Start: To run wxGlade, start the wxglade.py or wxglade.pyw program file with the Python interpreter.
Other Prerequisites: On Windows, the win32 extensions should be installed: https://sourceforge.net/projects/pywin32/
- Supported Python and wxPython Versions:
- The classic wxPython versions 2.8 and 3.0 are supported as well as wxPython Phoenix running under Python 3
- Phoenix plus Python 2 will probably also work, but this is not tested at all. wxPython 2.8 is generally less tested than the more recent versions.
- When running Python 3 + Phoenix or Python 2 + Classic, the generated Python code will not be compatible to the other version.
Program Windows¶
wxGlade consists of five main windows:
(click on one of the images to see it full size)
See also
Reference: Keyboard and Mouse Actions for keyboard shortcuts and mouse actions.
Examples¶
Before doing anything else, you may want to open an example file showing most of the supported controls:
- for wxPython 3.0 and Phoenix:
examples/AllControls_30.wxg
- for wxPython 2.8:
examples/AllControls_28.wxg
Each example file includes a frame with most of the supported widgets and also a menu bar, a tool bar and a status bar.
- Required steps:
- open the file by dragging it to the main window or by selecting the menu item File->Open
- double-click “All_Widgets” in the Tree window to open the Design window and have a look around
- create Python source code:
- press
Ctrl-G
or - select the toplevel object “Application” and hit the button “Generate Source” in the Properties window
- press
- press
F5
to create a preview