Choosing GUI Module for Python

S

sturlamolden

08/23/2009 Version 3.01.63 (Beta)
08/19/2009 Version 3.01.62 (Beta)

I tried 3.01.63.
I can see in the Python window already that the code is not correct.

3.01.63

Did you remember to install the wxAdditions?

Could you send me an .fbp file demonstrating the error?
 
D

Dietmar Schwertberger

sturlamolden said:
3.01.63

Did you remember to install the wxAdditions?
No. I think that they should not be required (a minimal version seems
to be included in wxFormBuilder) and I don't get any error message.
Also using wxAdditions for wx Python doesn't seem to be straightforward.
Could you send me an .fbp file demonstrating the error?
Sent by email. Did you receive it?

Regards,

Dietmar
 
S

sturlamolden

   self.m_toolBar1 = self.CreateToolBar( wx.TB_HORIZONTAL, wx.ID_ANY )
   self.m_button1 = wx.Button( self.m_toolBar1, wx.ID_ANY, u"MyButton",
wx.DefaultPosition, wx.DefaultSize, 0 )
   m_toolBar1.AddControl( m_button1 )

I can confirm this. There seems to be a bug in the generation of
Python code for wxToolBar.
 
D

Dietmar Schwertberger

sturlamolden said:
I can confirm this. There seems to be a bug in the generation of
Python code for wxToolBar.

If anybody faces this problem before a new revision of wxFormBuilder
will be available: an XML file need to be updated to correctly
include self.

The modification:

wxformbuilder\output\plugins\common\xml\menutoolbar.pythoncode:

<codegen language="Python">
<templates class="wxWindow">
<template name="toolbar_add">self.#parent $name.AddControl(
self.$name )</template>
</templates>



Regards,

Dietmar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top