wxPython - Disable Radio button Last Updated : 24 Jun, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article we are going to learn about how can we disable a radio button present in a frame. Sometimes when we dont want user to press a button we can disable a button and the button become unclickable. In order to disable a button we can use Disable() function associated with wx.RadioButton class of wxPython. Syntax: wx.RadioButton.Disable(self) Parameters: No parameters are required by Disable() function Return Type: bool Returns: Returns True if the window has been disabled, False if it had been already disabled before the call to this function. 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): # create parent panel for radio buttons 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 self.rb1.Disable() def main(): app = wx.App() ex = Example(None) ex.Show() app.MainLoop() if __name__ == '__main__': main() Output Window: Comment More infoAdvertise with us Next Article wxPython - Show hidden Radio Button R RahulSabharwal Follow Improve Article Tags : Python Python-gui Python-wxPython Python wxPython-Button Practice Tags : python Similar Reads wxPython - Disable Button In this article we are going to learn about how can we disable a button present in a frame. Sometimes when we dont want user to press a button we can disable a button and the button become unclickable. In order to disable a button we can use Disable() function associated with wx.Button class of wxPy 1 min read wxPython - Hide Radio Button In this article we are going to learn about that, how can we hide a radio button present on frame. We can hide a radio button using Hide() function. Hide() function takes no argument and hide the radio button window from the frame. Hide() is different from Drop() as it just hides the radio button an 1 min read wxPython - Show hidden Radio Button In this article we will learn how can we show a hidden radio button. In order to unhide/show a radio button we can use Show() function. Show() function can be used to do both show as well as hide the radio button. Show() function takes show boolean parameter which, If True displays the window. Other 1 min read wxPython - Change Size of Radio Button In this article we will learn to change size of a Radio Button. We will change the size of Radio Button using SetSize() function associated with wx.RadioButton class of wxPython. SetSize() function is simply used to change the size of the window of Radio Button in pixels. Syntax: wx.RadioButton.SetS 1 min read wxPython - Change font of Radio Button In this article we are going to learn that how can we change the font of the label text present on the radio button present in the frame. We need to follow some steps as follows: Step 1: Create a wx.Font object. Step 2: Add different attributes of font in parameters like: family, style etc. Step 3: 1 min read wxPython - Disable Radio Box present in frame In this article we are going to learn that how can we disable a Radio Box present in the frame. In order to do that we will use Disable() method which makes the whole Radio Box disabled and unclickable. Disable() method returns True if the window has been disabled, False if it had been already disab 2 min read Like