You can run wxGlade without parameters to start the GUI on an empty application as follows:
wxglade.py
Run wxGlade GUI on an existing application specifying the .wxg file as follow:
wxglade.py FILENAME.wxg
If you only want to generate the code without starting the GUI, use the -g or --generate-code option with the language as argument as follows:
wxglade.py -g LANG FILENAME.wxg
wxglade.py --generate-cod=LANG FILENAME.wxg
Possible values for LANG are "python", "XRC", "perl" or "C++".
You can also specify the destination of the generated code with -o or --output option:
wxglade.py -g LANG -o DESTINATION FILENAME.wxg
The DESTINATION argument can be a file or a directory. It is a file when the FILENAME.wxg generates single-file source code. It is a directory when the FILENAME.wxg generates multiple-file source code.
This is the complete description of the command line:
wxglade.py [OPTIONS] [FILENAME.wxg]
OPTIONS:
-g LANG, --generate-code=LANG
Generate the code in the LANG language. Possible values for LANG are C++, python, perl, XRC.
-o DEST, --output=DEST
Only valid with the -g option. Specify the destination for the code generation.
The argument DEST can be a source code file or a directory.