wxPython - IsVertical() function in wx.StaticLine Last Updated : 09 Mar, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article we are going to learn about IsVertical() method associated with wx.StaticLine class of wxPython. IsVertical() function is a simple function used in order to return True if the line is vertical, False if horizontal. Syntax: wx.StaticLine.IsVertical(self) Parameters No parameters are required by IsVertical() method. Return Type: bool 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) # list of choices hlist = ['Item One', 'Item Two'] vlist =['Item One', 'Item Two'] # create vertical line from point (50, 0) to (50, 250) self.sl = wx.StaticLine(pnl, 2, pos =(50, 0), size = (1, 250), style = wx.LI_VERTICAL) # print True if static line is vertical False otherwise print (self.sl.IsVertical()) # 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: True Output Window: Comment More infoAdvertise with us Next Article wxPython - IsVertical() function in wx.StaticLine R RahulSabharwal Follow Improve Article Tags : Python Python-gui Python-wxPython Python wxPython-StaticLine Practice Tags : python Similar Reads wxPython - SetLabel() function in wx.StaticText In this article we are going to learn about SetLabel() function associated with wx.StaticText class of wxPython. SetLabel() function is used to set the string label for the Static Text. It takes a string parameter that is used as label for Static Text. Syntax: wx.StaticText.SetLabel(self, label) Par 1 min read wxPython - IsEllipsized() function in wx.StaticText In this article we are going to learn about IsEllipsized() function associated with wx.StaticText class of wxPython. IsEllipsized() function is used to return True if the window styles for this control contains one of the ST_ELLIPSIZE_START, ST_ELLIPSIZE_MIDDLE or ST_ELLIPSIZE_END styles. Syntax: wx 1 min read wxPython - StaticLine() constructor in wx.StaticLine In this article we are going to learn about StaticLine() constructor associated with wx.StaticLine class of wxPython. A static line is just a line which may be used in a dialog to separate the groups of controls. The line may be only vertical or horizontal. Moreover, not all ports (notably not wxGTK 2 min read wxPython - SetForegroundColour() function in wx.StaticText In this article we are going to learn about SetForegroundColour() function associated with wx.StaticText class of wxPython. SetForegroundColour() function is simply used to set foreground colour of a static text to a different colour. It takes wx.Colour argument to set the background colour. Syntax: 1 min read wxPython - SetBackgroundColour() function in wx.StaticText In this article we are going to learn about SetBackgroundColour() function associated with wx.StaticText class of wxPython. SetBackgroundColour() function is simply used to set background of a static text to a different colour. It takes wx.Colour argument to set the background colour. Syntax: wx.Sta 1 min read Like