Questions tagged [wxformbuilder]

wxFormBuilder is a cross-platform tool that provides a visual interface for designing GUI applications using the wxWidgets toolkit. Questions with this tag should be directly related to using wxFormBuilder or to the code generated by wxFormBuilder.

wxFormBuilder is used to create GUI applications for Windows, Mac, and Linux systems. Because it uses the wxWidgets toolkit, it uses a form flow layout (as opposed to an absolute position layout) to dynamically size a dialog based on the size of its controls, available space, and constraints placed on the dialog by the designer.

wxFormBuilder provides an interface for laying out the controls, binding events to event handlers for a given control, setting the properties of each control, and generating the code for the dialog.

wxFormBuilder generates a class for the designed dialog in C++, Python, PHP, and/or XRC. It can also generate the skeleton for a class which derives from the dialog class, which is useful for starting to write an application that uses the dialog.

wxFormBuilder is currently in version 3.5.1-rc1. Please specify which version you are using, when asking a question.

As questions about wxFormBuilder are a subset of questions about wxWidgets, the two should be distinct from one another, but will certainly involve some overlap. Questions with this tag should have something to do with using wxFormBuilder itself, or with code that was generated by wxFormBuilder.

The official wiki can be found at https://sourceforge.net/apps/mediawiki/wxformbuilder/index.php?title=HomePage

More information is also available on Wikipedia at https://en.wikipedia.org/wiki/WxFormBuilder

90 questions
4
votes
2 answers

How do I fix a "memory leak of type 'wxPyXmlSubclassFactory *', no destructor found" error from wxPython/wxFormBuilder?

I'm trying to follow this tutorial to quickly make simple GUIs using wxPython and wxFormBuilder. Using the wxFormBuilder, I created a super simple frame with one vertical layout, one edit text control and a button, which only clears the value of…
Jessica
  • 140
  • 2
  • 7
3
votes
2 answers

How to add personal code into wxFormBuilder-generated class

I play with Eclipse + wxWidgets + wxFormBuilder I use wxFormBuilder for GUI-design. It generates 2 classes: first is base class; second inherits first to implement functionality like button clicks. But both of this files are regenerated every time I…
fat
  • 6,435
  • 5
  • 44
  • 70
3
votes
3 answers

How to build wxFormBuilder 3.x on Mac

I downloaded wxFormBuilder 3.4 beta mac to appropriate directory. and open a terminal i run to sh create_build_files4.sh but console show to me following error. MinSeok-ui-iMac-3:wxFormBuilder MinSeok$ sh…
bitmapdata.com
  • 9,572
  • 5
  • 35
  • 43
3
votes
1 answer

How do I add a label to wxWidgets wxBitmapButton?

How do I create a button using wxWidgets that has both a label(text) and an image or icon. If I select wxBitmapButton there is a field called "label". But whenever I write anything in that field it doesn't update code in the wxFormBuilder. I have…
YahooMania
  • 115
  • 4
  • 15
2
votes
0 answers

how to program the apple menu bar in WxPerl?

I am just starting out with WxPerl. I generated a simple frame with a button in wxformbuilder, generated the XRC, and successfully used the XRC in my Perl code. So far so good. Right now I am developing on OS X and I notice that the Apple menu…
sail0r
  • 445
  • 1
  • 5
  • 18
2
votes
2 answers

How to prevent vertical sizers from expanding their children all the way downwards in wxformbuilder

I'm trying to design a dash board in WX form builder for Python. I'm having trouble trying to figure out how to keep two horizontal sizers that are children to a vertical sizer from expanding far apart from each other. Below is a screen shot…
bud
  • 485
  • 6
  • 22
2
votes
0 answers

12:52:27: Debug: ..\..\include\wx/msw/private.h(697): 'UnregisterClass' failed with error 0x00000584 (class still has open windows.)

When building a gui with wxformbuilder for a python program; after a number of edits and re-builds I get the following error: 12:52:27: Debug: ....\include\wx/msw/private.h(697): 'UnregisterClass' failed with error 0x00000584 (class still has open…
2
votes
1 answer

wxformbuilder and unicode labels

Is there a way to get Unicode characters into label code generated by wxFormBuilder? For example, to get an Angstrom character the generated string should read u"\u212b". I tried entering \u212b in the label property field but the resulting string…
2
votes
1 answer

How to write wxPython textCtrl focus event

I'm trying to fire a line of code when the user clicks on a textCtrl. The end goal is to highlight the contents of the box when it is clicked on. I am aware that this is possible with wx.EVT_SET_FOCUS, but it's either buggy or I'm implementing it…
TboneH
  • 51
  • 1
  • 5
2
votes
2 answers

How to move a button in WxFormBuilder

I've been playing around with WxFormBuilder, and I'm stuck on how to do the simple task of positioning a button in different places on the screen. Now the most intuitive thing would be to drag and drop, but WxFormBuilder (sadly) does not have this…
lars
  • 1,976
  • 5
  • 33
  • 47
2
votes
2 answers

TypeError: __init__() takes at least 3 arguments (1 given)

This is my code for a GUI : import wx import os.path class MainWindow(wx.Frame): #def __init__(self, filename=''): #super(MainWindow, self).__init__(None, size=(800,600)) def __init__(self, parent, title, *args, **kwargs): …
boltthrower
  • 1,230
  • 3
  • 12
  • 29
2
votes
3 answers

WxFormBuilder has no Python option

How can I generate python code? I know I need to change code_generation property from C++ to Python, but there is no Python option... How can i fix this? I have already tried looking for this problem on the internet, but I couldn't find anything.
user1176999
  • 440
  • 8
  • 20
2
votes
3 answers

how to generate python codes with wxFormBuilder?

I created a simple form(frame) with buttons in wxBuilderForm. When I generate codes (when pressing F8 in wxFormBuilder), it generates the following three files: noname.cpp noname.h test1.fbp If I compare to a template that I downloaded and which…
Sylvain
  • 553
  • 3
  • 14
  • 26
1
vote
2 answers

wxformbuilder python generated code throws NameError

Not sure if the background is relevant, but I'll include it in the eventuality I'm moving from wxglade, so I generated a XRC from wxglade and imported in wxformbuilder I have a grid that I subclass to add some functionality, in wxformbuilder it…
tovmeod
  • 890
  • 6
  • 13
1
vote
1 answer

create multiple classes with wxFormBuilder for python

I'm using wxFormBuilder to write a series of GUI applications. So far it has worked wonderfully, but the documentation on their homepage is a broken link. What I'd like to do is combine my programs into one program, each as a different tab in a…
jmite
  • 8,171
  • 6
  • 40
  • 81
1
2 3 4 5 6