wxPython problem switching between 2 wx.SplitterWindow's
danperl at rogers.com
Fri Oct 8 16:29:45 CEST 2004
I have posted this problem also on the wxpython-users list, but maybe
someone here can also help.
I want to keep 2 different views for the same object, both views using
SplitterWindow. So I am trying to create 2 SplitterWindow's, keeping both
in memory, and alternately show only one of them. However, that doesn't
work and I've tried all kinds of combinations of Show, SplitVertically,
UpdateSize, and Layout.
I think I have isolated the problem in this code snippet (also attached).
This code actually works. But un-comment the 2 lines for splitter2 and you
will see the problem:
def __init__(self, parent):
#self.splitter2=wx.SplitterWindow(self) # un-comment and you'll
#self.splitter2.Hide() # see the problem
def showSplitter(self, id):
self.mainWin = myFrame(None)
if __name__ == '__main__':
application = myApp(0)
I have cut it down to the bone, so there are no children in the
SplitterWindow's and they are not even splitted. I assure you that the same
is happening in those cases. I am not invoking any Layout( ) here, but I've
tried that too.
Can anyone explain what is happening here? Am I missing a step somewhere?
Or could this actually be a bug in SplitterWindow?
More information about the Python-list