简体   繁体   English

有没有一种方法可以将选项卡标签放入数组中? -wxPython

[英]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. 我知道我可以使用GetSelection()获取选定的标签,但是它将返回标签号,我想获取标签标签。

I am using 我在用

print self.GetSelection()

I suposse you are asking about a wx.Notebook as you talk about tabs. 我猜想您在谈论标签时问的是wx.Notebook。
Then use the method GetPageText() 然后使用方法GetPageText()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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