Skip to content

Build GUI with wxFormBuilder

Erriez edited this page Apr 19, 2018 · 1 revision

Installation

Windows

Download and install the release wxFormBuilder_v3.6.2.exe.

Linux

The apt-get wxFormBuilder is out dated and should not be used. This project uses wxPython v4.0.1 (Phoenix) in combination with mainline wxFormBuilder v3.6.2 which must be build from source.

# Install system dependencies
$ sudo apt-get install git libwxgtk3.0-dev libwxgtk-media3.0-dev libboost-dev

# Clone wxFormBuilder sources from GitHub
$ git clone --recursive --depth=1 https://github.com/wxFormBuilder/wxFormBuilder

# Build wxFormBuilder
$ cd wxFormBuilder
$ ./create_build_files4.sh
$ cd build/3.0/gmake
$ make config=release

# Run wxFormBuilder
cd ../../../output/bin/
./wxformbuilder

# Create shortcut
$ gedit ~/.local/share/applications/wxFormBuilder.desktop

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=wxFormBuilder
Icon=<PATH>/wxFormBuilder/src/wxFormBuilder.ico
Path=<PATH>/wxFormBuilder/output/bin
Exec=<PATH>/wxFormBuilder/output/bin/wxformbuilder
Name[en_US]=wxFormBuilder.desktop

Usage

Open a .fbp file with wxFormBuilder. Modify the dialog and click Generate Code (F8). Then create a derived class and show the dialog.

Clone this wiki locally