简体   繁体   中英

Is there a way to get the tab label into an array? - wxPython

I know i can use GetSelection() to get the selected tab, however it will return the tab number, i would like to get the tab label.

I am using

print self.GetSelection()

I suposse you are asking about a wx.Notebook as you talk about tabs.
Then use the method GetPageText()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM