Hi all,
I'd like to ask for help with wx.aui.AuiManager used in a rather complex layout;
Basically, I was quite surprised that the following code seems to work:
self.Maximize() # self - a frame containing the AuiManager
self._mgr.LoadPerspective(persp_all) # loads a complex layout
with 25 panes displayed
self._mgr.LoadPerspective(persp_menu) # displays only a
menu-pane and the centre-pane; all other panels are hidden
self._mgr.Update()
whereas in the same time, only calling the simpler (2nd) perspective
doesn't work well, the layout remains distorted - not updated.
Would someone have an insight, why the complex perspective can be
loaded rather than the simpler one?
In principle, this is used as a fallback to cover a cornercase, when
the user tries to load a complex layout into a small frame, it should
not matter for normal usage, but I'd like to understand or ideally fix
it nevertheless.
Additionally, I use a check mainly suggested in
http://article.gmane.org/gmane.comp.python.wxpython/55137
on EVT_AUI_RENDER all managed panel sizes of all manager are checked
for a minimal size, and eventually the previous state or a fallback
are loaded.
Unfortunately, I am having difficulty to reproduce this in a simpler
app, it seems to be some kind of timing issue(?) also depending on the
complicated gui, the simpler test layouts don't behave like this.
This is all wx.aui; trying wx.lib.agw.aui I got other problems;
besides speed (looking forward for the announced version!) I cannot
seem to catch the RENDER events, needed for checking the minimal size
or displaying the caption tooltips.
I am using python 2.5.4, wxpython 2.8.10.1 unicode; on windows XP SP3.
Best regards,
Vlasta
