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¶
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¶
- class TreeItemAttr(object)¶
Creates the item attributes (text colour, background colour and font).
Note
This class is inspired by the wxWidgets generic implementation of
TreeItemAttr
.
Methods¶
- __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.
- Returns:
An instance of
wx.Colour
.
- GetBorderColour(self)¶
Returns the attribute border colour.
- Returns:
An instance of
wx.Colour
.
Added in version 0.9.6.
- HasBackgroundColour(self)¶
Returns whether the attribute has background colour.
- Returns:
True
if the background colour attribute has been set,False
otherwise.
- HasBorderColour(self)¶
Returns whether the attribute has border colour.
- Returns:
True
if the border colour attribute has been set,False
otherwise.
Added in version 0.9.6.
- HasFont(self)¶
Returns whether the attribute has font.
- Returns:
True
if the font attribute has been set,False
otherwise.
- HasTextColour(self)¶
Returns whether the attribute has text colour.
- Returns:
True
if the text colour attribute has been set,False
otherwise.
- SetBackgroundColour(self, colBack)¶
Sets the item background colour attribute.
- Parameters:
colBack – an instance of
wx.Colour
.
- SetBorderColour(self, colBorder)¶
Sets the item border colour attribute.
- Parameters:
colBack – an instance of
wx.Colour
.
Added in version 0.9.6.