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.
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