wxPython – SetStatusStyles() function in wx.StatusBar
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)
Parameter Input Type Description styles list of int Contains 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).