Trouble when Creating a Panel

I tryed to fool the python and what’s happening now is… when I click the menu it “builds” the panel on the left top corner and then put everything on its place, the problem is that I can see what’s happening when building, and takes about 0.5 seg to finish it =/

···

On Tue, May 20, 2008 at 8:33 PM, David Anderson zerty.david@gmail.com wrote:

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 = 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 = Frame(self,-1)

and on the Menu’s event handler I do like this
self.Panel = 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
=)

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@noaa.gov