Hi all,
Figured I’d ask my other question that’s been lingering in my head now that I have a quick sample app. So, here goes:
The attached app has 5 panes, plus a button to restore pane 3. I must be doing something wrong, though. With 5 panes, if I close (manually) panes 3,4 and 5 and then click the button which essentially calls self._mgr.RestorePane(pane3info) then Pane 3 will be restored. But so will panes 4 and 5. Is there a way to only restore pane 3 rather than the entire right side or am I missing something in how RestorePane should work?
Thanks as always!
Steve
panes.py (2.06 KB)
Hi,
I am not sure, how RestorePane is expected to work, but using
paneInfo.Show()
instead of
self._mgr.RestorePane(paneInfo)
seems to work as expected.
(By the way, it might be adequate to use the more comprehensive
PaneInfo() (including Name()) in the AddPane calls, you can use
GetPane(...) directly instead of filtering from all panes, but it
doesn't seem to matter in the current problem.
hth,
vbr
···
2011/6/16 Stephen Shaw <srbshawker@gmail.com>:
Hi all,
Figured I'd ask my other question that's been lingering in my head now that
I have a quick sample app. So, here goes:
The attached app has 5 panes, plus a button to restore pane 3. I must be
doing something wrong, though. With 5 panes, if I close (manually) panes
3,4 and 5 and then click the button which essentially calls
self._mgr.RestorePane(pane3info) then Pane 3 will be restored. But so will
panes 4 and 5. Is there a way to only restore pane 3 rather than the entire
right side or am I missing something in how RestorePane should work?
Thanks as always!
Steve
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en