wxGlade manual

Marcello Semboli

Alberto Griggio

Carsten Grohmann


Table of Contents

Preface
Contact
License
1. Introduction to wxGlade
What is wxGlade?
What can you do with wxGlade?
What is wxGlade NOT?
Requirements and Supported Platforms
Installation
Download
Installing at Microsoft Windows
Installing at Unix/Unix-like Operating Systems
Installing from Source
Configuring wxGlade
Preferences Dialog
Configuration files and Configuration directory
Environment Variables
Logging
How to Report a Bug
Deprecated features
2. Exploring wxGlade
Quick example
Basics of wxGlade
Escape Sequences
Best Practice
Language specific peculiarities
Python
Lisp
Command line invocation
Using the source code
Full control by wxGlade
Shared control
Output path and filenames
Automatically created wxApp instance
Compiling C++ code
Handling XRC files
3. wxGlade User Interface
Main Palette
Tree Window
Design Window
Properties Window
Application Properties
Common Properties
Layout Properties
Widget Properties
Events Properties
Code Properties
The wxGlade Menu
The FILE menu
The VIEW menu
The HELP menu
Shortcuts
4. Supported widgets
Introduction
Specifying the path of bitmaps
Widget List
Frame
Dialog or Panel
Panel
Splitter Window
Notebook
Buttons
Gauge
Hyperlink Control
Radio Box
Spin Control
Slider
Static Text
Text Control
Check Box
Choice
Combo Box
List Box
Static Line
Static Bitmap
List Control
Tree Control
Grid
Custom Widget
Spacer
5. Menu, Statusbar and Toolbar
Introduction
Menu
Statusbar
Toolbar
6. wxGlade technical notes
Startup
Adding a toplevel widget
Adding a toplevel sizer
Adding a normal widget/sizer
Changing the value of a Property
Saving the app
Loading an app from a XML file
Generating the source code
For contributors
7. Installing and Designing own Widget Plugins
Widgets packages
Create ZIP package
Installing Widget Plugins locally
Designing own Widget Plugins
Widget Initialisation
A. Abbreviations
B. Copyrights and Trademarks
C. wxGlade License Agreement
D. Licenses and Acknowledgements for Incorporated Software
OrderedDict

List of Figures

1.1. wxGlade windows
1.2. wxGlade preferences dialog
1.3. An error dialog example
3.1. The Main Palette
3.2. The Tree Window
3.3. The menu for a widget
3.4. The menu for a sizer
3.5. The Design Window
3.6. Project Properties - Application settings
3.7. Project Properties - Language settings
3.8. Common Properties
3.9. Changing Common Properties
3.10. Common Properties of a subclassed widget (default behaviour)
3.11. Common Properties with Base class(es) entry
3.12. Common Properties with a variable assignment
3.13. Layout Properties
3.14. Widget Properties
3.15. Events Properties
3.16. Events Properties with entered event handler name
3.17. Properties for extra code and extra properties
3.18. Set extra property
5.1. Menu editor
5.2. Statusbar properties
5.3. Toolbar editor

List of Tables

2.1. Interaction between properties to generate different types of start code

List of Examples

1.1. Installing wxGlade at /opt/wxglade
1.2. Starting wxGlade at /opt/wxglade/bin/wxglade
2.1. Correct entered wx constant
2.2. Detailed application start code in Perl
2.3. Simplified application start code in Perl
2.4. Compiling a single file C++ project on Linux
2.5. Compiling a multi file C++ project on Linux
2.6. Converting a XRC file into a wxGlade project
2.7. wxPython code to load and show a XRC resource
3.1. Generated Python code of a subclassed widget
3.2. Generated Python code of a widget with two base classes
3.3. Generated Python code for a variable assignment
3.4. Generated Python code of an EVT_TEXT event handler stub at line 12
3.5. Generated Python code for setting property MaxLength to 10 at line 14
7.1. Directory package
7.2. ZIP package