[wxPython-users] $50 question : wx.AuiNotebook problem

Frank Niessink frank at niessink.com
Wed Mar 7 15:02:32 PST 2007


Hi Horst, here's a $0.05 answer :-(

2007/3/7, Horst Herb <subscriptions at gnumed.net>:
> wx.AuiNotebook appears to have a method "GetAuiManager".
>
> However, when I use it to try to restore a layout (perspective), it doesn=
't do
> anything

I need to same functionality for the next release of Task Coach, so
I've spent a couple of hours on this. Here's what I've learned so far:
the LoadPerspective method *only* changes the layout of the panes in
the notebook. The panes are the place holders for the tabs. By default
there's just one pane. If you drag a tab you create a second pane,
etc. When you save the perspective it only saves information about the
position and size of the panes, *not* of which tabs are in which pane.
The attached code shows how to save the state (position and size) of
the panes and recreate it on the next session. What I haven't been
able to accomplish so far is to add the right tabs to the right panes.
I think Robin needs to expose more (all?) of the AUI methods in python
to be able to do that...

Cheers, Frank
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aui.py
Type: application/octet-stream
Size: 2189 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20070=
308/153d57c0/aui.obj


More information about the wxpython-users mailing list