wxPython - GetBordersForSizer() method Last Updated : 10 Mar, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article we will learn about GetBordersForSizer() method associated with wx.StaticBox class of wxPython. GetBordersForSizer() is a simple function that is used in order to return extra space that may be needed for borders within a StaticBox. Syntax: wx.StaticBox.GetBordersForSizer(self)Parameters No arguments are required in GetBordersForSizer(). Return Type: tupleReturns: ( borderTop, borderOther )Code Example: Python3 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)) # extra space for border print(self.sb.GetBordersForSizer()) # 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() Console Output: (0, 0) Output Window: Comment More infoAdvertise with us Next Article wxPython - GetString() method in wx.RadioBox 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 - GetString() method in wx.RadioBox In this article we are going to learn about GetString() method associated with wx.RadioBox class of wxPython. GetString() method is simply used in order to return the label of the item with the given index. It takes the index of the corresponding item as parameter. Syntax: wx.RadioBOx.GetString(self 2 min read wxPython - SetMargins() with wx.Size parameters In this article we are going to learn about SetMargins() function associated with wx.ToolBar class of wxPython. Similarly with previous article SetMargins() function set the margins for the toolbar. But the only difference is rather taking two different parameters x and y it takes using wx.Size para 1 min read wxPython - GetBorders() function in wx.StatusBar In this article we are going to learn about GetBorders() function associated with wx.StatusBar class of wxPython. GetBorders() function returns the horizontal and vertical borders used when rendering the field text inside the field area. Note that the rect returned by GetFieldRect already accounts f 1 min read wxPython | GetToolPos() function in python In this article we are going to learn about GetToolPos() function associated with wx.ToolBar class of wxPython. GetToolPos() function simply returns the tool position in the toolbar, or NOT_FOUND if the tool is not found. GetToolPos() function only takes toolId(ID of the tool in question, as passed 2 min read wxPython - GetItemToolTip() method in wx.RadioBox In this article we are going to learn about GetItemToolTip() function associated with wx.RadioBox class of wxPython. GetItemToolTip() is a simple function that is used to return the tooltip associated with the specified item if any or None. It takes index of the item whose tooltip we want to find. S 1 min read Like