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

Robin Dunn robin at alldunn.com
Thu Mar 8 17:45:09 PST 2007


Frank Niessink wrote:
> Hi Robin,
> 
> 2007/3/8, Robin Dunn <robin at 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.

It would if those classes properly implemented wxRTTI, then wxPython's 
OOR code would know what kind of object it is dealing with and would 
construct the right proxy for it.  Unfortunatly adding wxRTTI is not a 
binary compatible change, so it won't be able to be done in 2.8.x...

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list