Configuring wxGlade

Preferences Dialog

You can access the Preferences Dialog with the menu item ViewPreferences. You can choose some decoration options, like whether to show icons in menus or not, but also something more effective. For example, you can modify the number of buttons in the Main Palette. If you type a value of 15 or 30, you get a long toolbar-like Main Palette. You can also choose the default path where you save wxGlade files or generate source code.

Another useful option is to enable a default border of 3 around some widgets. In many cases this can be useful to have set.

You need to restart wxGlade for changes to take effect.

Figure 1.4. wxGlade preferences dialog

wxGlade preferences dialog

Environment Variables

wxGlade supports only one environment variable WXGLADE_CONFIG_PATH.

If you want to store the whole configuration data inclusive user generated templates and log files in a non-default directory, then store the full path of the alternative directory in the environment variable WXGLADE_CONFIG_PATH and start wxGlade with the new environment.

Configuration Files

wxGlade stores several internal information like configuration settings and log files in an own directory. The location of this directory varies between different operating systems. On Unix wxGlade uses ~/.wxglade. On Microsoft Windows the information will be stored in C:/Users/username>/AppData/Roaming.

Note

Some components of the path will be translated to the users' language on Microsoft Windows automatically and transparently in the Windows Explorer and other graphical applications. Other applications show the original names. The translation behaviour depends on the API used by the application developer.

The configuration file is a simple text file and contains user settings. It's named wxgladerc on Unix or wxglade.ini on Microsoft Windows. Be careful with manual changes.

The configuration directory contains also a list of recently used files in file_history.txt.

wxGlade writes always a small error log file wxglade.log. It's also stored inside this directory. The file size is limited to 100 KB and wxGlade will keep at most two log files wxglade.log and wxglade.log.1. The roll over from wxglade.log to wxglade.log.1 will occur if the file size limit is reached. An already existing file wxglade.log.1 will be deleted automatically. The log file is a text file and the content is UTF-8 encoded.