Welcome to wxFormBuilder’s issue tracking system! We hope that wxFormBuilder provides you with many hours of increased productivity.
Please feel free to post bug reports and feature requests here. You can feel free to discuss an issue or feature on the forum but if you decide it needs to be looked at you need to post it here. If a feature request or bug report is not on this site there is a good chance it won’t be worked on. So, as a rule, post them here.
Thanks for your cooperation,
The wxFormBuilder Team
FS#459 - duplicate python code generated on toolbar add widget
Opened by Bob Grimm (bgrimm) - Friday, 05 March 2010, 16:22 GMT+2
Last edited by Michal Bližňák (marfi) - Thursday, 18 March 2010, 15:56 GMT+2
|
DetailsCreate a frame→sizer→Panel→sizer→grid + toolbar add a bitmap button to toolbar. The python code generated contains two declarations of addcontrol, causing GTK-Warning to report a parenting problem on execution. self.m_toolBar5 = wx.ToolBar( self.m_panel18, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TB_HORIZONTAL ) self.m_bpButton9 = wx.BitmapButton( self.m_toolBar5, wx.ID_ANY, wx.NullBitmap, wx.DefaultPosition, wx.DefaultSize, wx.BU_AUTODRAW ) self.m_toolBar5.AddControl( self.m_bpButton9 ) self.m_toolBar5.AddControl( self.m_bpButton9 ) wxFormBuilderBeta 3.1.67-beta |
Thursday, 18 March 2010, 15:56 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in SVN 1709 (wxFB 3.1.68)
I just noticed the C++ code generation also creates double calls to AddControl. This seems specific to bitmap buttons as normal buttons, text controls, etc do not have that code generation error.