wxPython - Enable() method in wx.StaticBox Last Updated : 08 Jul, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article we are going to learn about Enable() method associated with wx.StaticBox class of wxPython. Enable() function is simply used in order to enable or disable the box without affecting its label window, if any. It takes a boolean 'enable' parameter if True enables the window else disables it. Syntax: wx.StaticBox.Enable(Self, enable=True) Parameters Parameter Input Type Description enable bool True enable the window else disables it Code Example: Python3 1== import wx class FrameUI(wx.Frame): def __init__(self, parent, title): super(FrameUI, self).__init__(parent, title = title, size =(300, 200)) # function for in-frame components self.InitUI() def InitUI(self): # parent panel for radio box pnl = wx.Panel(self) # create static box self.sb = wx.StaticBox(pnl, 2, label ="Static Box", pos =(20, 20), size =(100, 100)) # disable static box self.sb.Enable(False) # set frame in centre self.Centre() # set size of frame self.SetSize((400, 250)) # show output frame self.Show(True) # wx App instance ex = wx.App() # Example instance FrameUI(None, 'RadioButton and RadioBox') ex.MainLoop() Output Window: Comment More infoAdvertise with us Next Article wxPython - EnsureVisible() method in wx.TreeCtrl R RahulSabharwal Follow Improve Article Tags : Python Python-gui Python-wxPython Python wxPython-StaticBox Practice Tags : python Similar Reads wxPython - GetDefaultSize() method in wx.StaticLine In this article we are going to learn about method GetDefaultSize() associated with wx.StaticLine class of wxPython. GetDefaultSize() method is simply used to return the size which will be given to the smaller dimension of the static line, i.e. Its height for a horizontal line or its width for a ver 1 min read wxPython - GetValue() method in wx.RadioButton Python provides wxpython package which allows us to create high functional graphical user interface. It is cross platform GUI toolkit for python, Phoenix version Phoenix is the improved next-generation wxPython and it mainly focused on speed, maintainability and extensibility. In this article,  we 2 min read wxPython - IsItemEnabled() method in wx.RadioBox In this article we are going to learn about IsItemEnabled() method associated with wx.RadioBox class of wxPython. IsItemEnabled() method is simply used to return True if the item is enabled or False if it was disabled using Enable . Note, this function is currently only implemented in wxMSW, wxGTK, 1 min read wxPython - EnsureVisible() method in wx.TreeCtrl In this article we are going to learn about EnsureVisible() function associated with wx.TreeCtrl class of wxPython. EnsureVisible() method makes an item/root to be visible on screen. Scrolls and/or expands items to ensure that the given item is visible. This method can be used, and will work, even w 1 min read wxPython - IsItemShown() method in wx.RadioBOx In this article we are going to learn about IsItemShown() function associated with wx.RadioBOx class of wxPython. IsItemShown() method is simply used to return True if the item is currently shown or False if it was hidden using Show. Note that this function returns True for an item which hadnât been 1 min read wxPython - Disable statictext in wxPython Python provides wxpython package which allows us to create high functional graphical user interface. It is cross platform GUI toolkit for python, Phoenix version Phoenix is the improved next-generation wxPython and it mainly focused on speed, maintainability and extensibility. In this article, we w 2 min read Like