kaitlyn wrote:
Here's a better clarification
There's a frame. It is divided horizontally by a splitter. The top
half is divided again via a splitter. There is a wxPanel in each of
the upper two halves. The left-upper has various things like buttons
and also a combo box that presents the user with options. I want the
_layout_ of the right-upper to appear to *change* according to the
users selection in the combo box.I wrote
self.TopWindow.ReplaceWindow(self.TopWindow.GetWindow2(), self.theLayout1)
and
self.TopWindow.ReplaceWindow(self.TopWindow.GetWindow2(), self.theLayout2)The app would change the right-upper layout once, but not after after
that.What is the right way to do this and is there an example? Or is there
something else I should do?
Have you tried something like this instead?
self.TopWindow.ReplaceWindow(self.Layout2, self.theLayout1)
self.Layout2.Hide()
and
self.TopWindow.ReplaceWindow(self.Layout1, self.theLayout2)
self.Layout1.Hide()
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!