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)

wPalette Main Palette window:
This is the main window with the main window.
There is an icon for each window and control type that can be added to a project.
wTree Tree window:
This window visualizes and allows to edit the structure of the project with it’s application, windows, sizers and controls.
On selection of an item, it’s properties will be shown in the Properties window.
wProperties Properties window:
This allows to display and edit properties of applications, windows and controls.
To edit an item, select it in the Tree or Design window.
wDesign Design window:
Visualizes the design of the window; it is not 100% identical to the final window.
To open this window, double-click a window’s icon in the Tree window.
  Preview window
A preview of the current window; should be 100% identical to the window as when it is used later on.

See also

Reference: Keyboard and Mouse Actions for keyboard shortcuts and mouse actions.


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 F5 to create a preview