[wxpython-users] Trouble when Creating a Panel

David Anderson zerty.david at gmail.com
Tue May 20 16:33:07 PDT 2008


Hi, I have a Class Named MainnApp, Whcih is derived from wx.Frame, There I
call any of my subclasses that are derived from wx.panels, The thing is, if
I call like this:
self.Panel =3D DerivedPanel(self, -1)

It shows the derived one fine, But I'm trying to show these panels through
the menu, So On the init of my MainApp class I create a self.panel =3D
Frame(self,-1)

and on the Menu's event handler I do like this
self.Panel =3D DerivedPanel(self, -1)
The thing is... Its putting everything of the menu on the top left corner
above everything, Doesn'1t create as when I call it on the init method
What am I doing wrong?
Hope you understand my problem
=3D)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200805=
20/21942c13/attachment.htm


More information about the wxpython-users mailing list