
wx.lib.agw.customtreectrl.TreeItemAttr¶Creates the item attributes (text colour, background colour and font).
Note
This class is inspired by the wxWidgets generic implementation of TreeItemAttr.
Class Hierarchy¶
Inheritance diagram for class TreeItemAttr:

Methods Summary¶Default class constructor. |
|
Returns the attribute background colour. |
|
Returns the attribute border colour. |
|
Returns the attribute font. |
|
Returns the attribute text colour. |
|
Returns whether the attribute has background colour. |
|
Returns whether the attribute has border colour. |
|
Returns whether the attribute has font. |
|
Returns whether the attribute has text colour. |
|
Sets the item background colour attribute. |
|
Sets the item border colour attribute. |
|
Sets the item font attribute. |
|
Sets the text colour attribute. |
Class API¶TreeItemAttr(object)¶Creates the item attributes (text colour, background colour and font).
Note
This class is inspired by the wxWidgets generic implementation of TreeItemAttr.
__init__(self, colText=wx.NullColour, colBack=wx.NullColour, colBorder=wx.NullColour, font=wx.NullFont)¶Default class constructor. For internal use: do not call it in your code!
GetBackgroundColour(self)¶Returns the attribute background colour.
An instance of wx.Colour.
GetBorderColour(self)¶Returns the attribute border colour.
An instance of wx.Colour.
New in version 0.9.6.
HasBackgroundColour(self)¶Returns whether the attribute has background colour.
True if the background colour attribute has been set, False otherwise.
HasBorderColour(self)¶Returns whether the attribute has border colour.
True if the border colour attribute has been set, False otherwise.
New in version 0.9.6.
HasFont(self)¶Returns whether the attribute has font.
True if the font attribute has been set, False otherwise.
HasTextColour(self)¶Returns whether the attribute has text colour.
True if the text colour attribute has been set, False otherwise.
SetBackgroundColour(self, colBack)¶Sets the item background colour attribute.
colBack – an instance of wx.Colour.
SetBorderColour(self, colBorder)¶Sets the item border colour attribute.
colBack – an instance of wx.Colour.
New in version 0.9.6.