Stuart Baron-Hay wrote:
greetings
I am playing around with the AUI_MDI example from the demo and was hoping to detect page change events;
I tried this by binding wx.aui.EVT_AUINOTEBOOK_PAGE_CHANGED but cannot seem to make it work!
Is it possible to detect this event?
or am I off with the fairies or both.
The thing to remember about the MDI API in wx is that your code is not supposed to know if the MDI is implemented using a notebook or frames or some other UI. It might look like the AUI MDI is using an AuiNotebook, but it is actually using an AuiTabCtrl (which is also used by AuiNotebook) so that is probably why you are not getting the notebook events, but if you stay true to the MDI API then you shouldn't care about how it is implemented.
Since the child "frames" in MDI are supposed to act like wx.Frames even if they are actually implemented some other way, then try catching the child frame's EVT_ACTIVATE event to find out which one of them has been selected.
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!