wxPython – GetString() method in wx.RadioBox
In this article we are going to learn about GetString() method associated with wx.RadioBox class of wxPython. GetString() method is simply used in order to return the label of the item with the given index.
It takes the index of the corresponding item as parameter.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course
Syntax: wx.RadioBOx.GetString(self, n)
Parameter Input Type Description n int The zero-based index.
Returns: The label of the item or an empty string if the position was invalid.
Return Type: string