VOOZH about

URL: https://www.geeksforgeeks.org/python/wxpython-setstatusstyles-function-in-wx-statusbar/

⇱ wxPython - SetStatusStyles() function in wx.StatusBar - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

wxPython - SetStatusStyles() function in wx.StatusBar

Last Updated : 13 Aug, 2021

In this article e are going to learn about SetStatusStyles() function associated with wx.StatusBar class of wxPython. SetStatusStyles() function Sets the styles of the fields in the status line which can make fields appear flat or raised instead of the standard sunken 3D border.
It takes an array of n integers with the styles for each field as an argument.
 

Syntax: wx.StatusBar.SetStatusStyles(Self, styles)
Parameters: 
 

ParameterInput TypeDescription
styleslist of intContains an array of n integers with the styles for each field.


There are four possible styles:
1. SB_NORMAL (default): The field appears with the default native border.
2. SB_FLAT: No border is painted around the field so that it appears flat.
3. SB_RAISED: A raised 3D border is painted around the field.
4. SB_SUNKEN: A sunken 3D border is painted around the field (this style is new since wxWidgets 2.9.5).
 


Code Example: 

Output Window: 

👁 Image
Comment