I have an EVT_NOTEBOOK_PAGE_CHANGED function to alert me when the tab changes, but I can only get it to tell me the index of the notebook tab:
self.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED, self.eventntbkParameters, self.ntbkParameters)
&
page = self.ntbk.GetSelection()
print page
I don’t think this it is very safe to determine the which tab is selected in this way in case an extra tab is added in the future, reshuffling the indices.
Is it possible to get the label of the tab instead?
Thank you
You want
ntbk.GetPageText(evt.GetSelection()).