It seems to be an easy question but I don’t find the answer in the docs.
Is there a way to list all active tabs on auinotebook ? with one active tab
it’s like nb.GetSelection(). But when you have splitted auinotebook, you
have multiple actives tabs and I was wondering if something like
nb.GetActiveTabs() exists ?
I used the following code.
When the pageChanged is triggered, the tabs status are still unchanged. I have to use wx.CallAfter to get the new status.
Is it something normal ? (I’m using wx.aui.EVT_AUINOTEBOOK_PAGE_CHANGED and not wx.aui.EVT_AUINOTEBOOK_PAGE_CHANGING).
Here is the log:
Tab 1 True <---- status at creation.
Tab 2 False
Tab 3 False
---------OnPageChanged <---- click on page 3
from id 0 to 2
Tab 1 True
Tab 2 False
Tab 3 False
---------OnPageChanged(End)
Tab 1 False <----- status with wx.CallAfter().
Tab 2 False
Tab 3 True
The code works with splitted auinotebook.
demo_auinotebook.py (2.71 KB)
···
Le vendredi 29 novembre 2013 09:18:33 UTC+1, sevaader a écrit :
It seems to be an easy question but I don’t find the answer in the docs.
Is there a way to list all active tabs on auinotebook ? with one active tab
it’s like nb.GetSelection(). But when you have splitted auinotebook, you
have multiple actives tabs and I was wondering if something like
nb.GetActiveTabs() exists ?