[wxpython-users] Re: Trouble when Creating a Panel

Christopher Barker Chris.Barker at noaa.gov
Tue May 20 17:17:35 PDT 2008


please post a small, runnable sample of your code we can look at.

David Anderson wrote:
>     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 = Frame(self,-1)

this would create a Frame, not a Panel...


>     and on the Menu's event handler I do like this
>     self.Panel = DerivedPanel(self, -1)

you can just do it there, no reason to pre-define self.Panel.

-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov


More information about the wxpython-users mailing list