Creates the item attributes (text colour, background colour and font).
Note
This class is inspired by the wxWidgets generic implementation of wx.TreeItemAttr.
__init__ | Default class constructor. |
GetBackgroundColour | Returns the attribute background colour. |
GetFont | Returns the attribute font. |
GetTextColour | Returns the attribute text colour. |
HasBackgroundColour | Returns whether the attribute has background colour. |
HasFont | Returns whether the attribute has font. |
HasTextColour | Returns whether the attribute has text colour. |
SetBackgroundColour | Sets the item background colour attribute. |
SetFont | Sets the item font attribute. |
SetTextColour | Sets the text colour attribute. |
Creates the item attributes (text colour, background colour and font).
Note
This class is inspired by the wxWidgets generic implementation of wx.TreeItemAttr.
Default class constructor. For internal use: do not call it in your code!
Parameters: |
---|
Returns the attribute background colour.
Returns: | An instance of wx.Colour. |
---|
Returns whether the attribute has background colour.
Returns: | True if the background colour attribute has been set, False otherwise. |
---|
Returns whether the attribute has font.
Returns: | True if the font attribute has been set, False otherwise. |
---|
Returns whether the attribute has text colour.
Returns: | True if the text colour attribute has been set, False otherwise. |
---|
Sets the item background colour attribute.
Parameters: | colBack – an instance of wx.Colour. |
---|