Skip to content Skip to sidebar Skip to footer

How Can I Get Tab Number Of Active Tab In Wxnotebook?

I want to get the active tab index for the following code whenever tab is switched. Is there any built in function? import wx Creating notebooks: class PageOne(wx.Panel): def __in

Solution 1:

Looking at the wxPython demo, it appears that you want event.GetSelection() or possibly self.GetSelection where "self" refers to the Notebook. The event that the demo example is bound to is EVT_NOTEBOOK_PAGE_CHANGED.


Post a Comment for "How Can I Get Tab Number Of Active Tab In Wxnotebook?"