Python provides wxpython package which allows us to create high functional graphical user interface. It is a cross-platform GUI toolkit for Python, Phoenix version Phoenix is the improved next-generation wxPython and it mainly focused on speed, maintainablity and extensibility.
In this article, we are going to learn about SetValue() method associated with wx.RadioButton class of wxPython. SetValue() method sets the radio button to checked or unchecked status. This does not cause a wxEVT_RADIOBUTTON event to get emitted. If the radio button belongs to a radio group exactly one button in the group may be checked and so this method can be only called with value set to True. To uncheck a radio button in a group you must check another button in the same group.
Syntax: wx.RadioButton.SetValue(self, value)
|value||bool||True to check, False to uncheck.|
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.