$50 question : wx.AuiNotebook problem

I also tried to figure out which pages are in which panes by looping
over the pages of the notebook and applying
self.manager.GetPane(page). To my biggest surprise it returns other
panes as with self.manager.GetAllPanes(). Why is that? It seems like a
bug if the auimanager return panes which are not in the "get all
panes".

Stani

···

On 3/8/07, Frank Niessink <frank@niessink.com> wrote:

Hi Robin,

2007/3/8, Robin Dunn <robin@alldunn.com>:
> Frank Niessink wrote:
>
> > I think Robin needs to expose more (all?) of the AUI methods in python
> > to be able to do that...
>
> Everything that is public in the C++ classes is available in the Python
> classes currently. I think that explicit perspective saving and loading
> that is aware of the specific structure of the AuiNotebook needs to be
> added. I've asked Ben about it...

I got stuck because the the AuiNotebook doesn't allow the programmer
to get to the tab containers. The alternative route, via the
AuiManager, doesn't work either: it is possible to get at the panes
via AuiManager.GetAllPanes() but the window property of the returned
PaneInfo objects is always of type wx.Window instead of AuiTabCtrl
(making it impossible to get to the individual tabs via the Panes). I
think that in C++ you can cast the wx.Window instance to a AuiTabCtrl
but in Python that doesn't work afaik.

Cheers, Frank

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

--