In this article we will learn about Enable() function associated with wx.RadioButton class of wxPython. Enable() function is simply used to enable or disable the Radio Button for user input. It takes a boolean argument True to Enable and False to disable.
Syntax: wx.RadioButton.Enable(self, enable=True)
Parameter Input Type Description enable bool If True, enables the window for input. If False, disables the window.
Return Type: bool
Returns: True if the window has been enabled or disabled, False if nothing was done, i.e. if the window had already been in the specified state.
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.