In this article we are going to learn about SetString() method associated with wx.RadioBox class of wxPython. SetString() function is simply used to set the label for the given item. SetString() function is an alternate method for SetLabel() method. SetString() method takes position and new string as arguments.
Syntax: wx.RadioBox.SetString(self, n, string)
Parameter Input Type Description n int The zero-based item index. string string The label to set.
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.