wxPython - Enable() function in wx.RadioButton Last Updated : 26 Jun, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report 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) Parameters: 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. Code Example: Python3 1== import wx APP_EXIT = 1 class Example(wx.Frame): def __init__(self, *args, **kwargs): super(Example, self).__init__(*args, **kwargs) self.InitUI() def InitUI(self): self.pnl = wx.Panel(self) # create radio button at position (30, 10) self.rb1 = wx.RadioButton(self.pnl, label ='Btn1', pos =(30, 10), size =(100, 20)) # disable the radio button using Enable() function self.rb1.Enable(False) def main(): app = wx.App() ex = Example(None) ex.Show() app.MainLoop() if __name__ == '__main__': main() Comment More infoAdvertise with us Next Article wxPython - Enable() function in wx.RadioButton R RahulSabharwal Follow Improve Article Tags : Python Python-gui Python-wxPython Practice Tags : python Similar Reads wxPython - EnableItem() function in wx.RadioBox In this article we are going to learn about EnableItem() function associated with wx.RadioBox class of wxPython. EnableItem() function is simply used to enable or disable an individual button in the radio box. It takes the position of button to disable or enable and boolean 'enable' True to enable, 1 min read wxPython - Enable() function in wx.MenuItem In this article we are going to learn about Enable() function associated with the wx.MenuItem class of wxPython. As the name Enable suggests Enable() function enables or disables the menu item. It only takes a boolean parameter enable, True for Enable and False for Disable. Syntax: wx.MenuItem.Enabl 1 min read wxPython - EnableTool() function in wx.Toolbar In this article we are going to learn EnableTool() function of class wx.ToolBar of wxPython. EnableTool is used to enable or disable(make clickable and unclickable) the tool present in toolbar. Syntax : wx.ToolBar.EnableTool(self, toolid, enable) Parameters : ParameterInput TypeDescriptiontoolidintI 1 min read wxPython - FindString() function in wx.RadioBox In this article we are going to learn about FindString() function associated with wx.RadioBox class of wxPython. FindString() function is simply used to find a button matching the given string, returning the position if found, or NOT_FOUND if not found. It takes a string argument to match string and 2 min read wxPython - IsRadio() function in wx.MenuItem In this article we are going to learn about IsRadio function associated with the wx.MenuItem class of wxPython. IsRadio() function returns True if the item is a radio button(item). IsRadio() function only return True for Radio items not check items. No parameters are required by IsRadio() function. 1 min read Like