wx.ItemAttr¶Represents the attributes (colour, font, …) of an item of a control with multiple items such as e.g.
Added in version 4.1/wxWidgets-3.1.1: (previous versions had a similar ListItemAttr class)
See also
Class Hierarchy¶
Inheritance diagram for class ItemAttr:
Methods Summary¶Default Constructor. |
|
Returns the currently set background colour. |
|
Returns the currently set font. |
|
Returns the currently set text colour. |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Sets a new background colour. |
|
Sets a new font. |
|
Sets a new text colour. |
|
Compare two item attributes for inequality. |
|
Compare two item attributes for equality. |
Properties Summary¶See |
Class API¶Possible constructors:
ItemAttr() -> None
ItemAttr(colText, colBack, font) -> None
Represents the attributes (colour, font, …) of an item of a control with multiple items such as e.g.
__init__ (self)
Default Constructor.
None
__init__ (self, colText, colBack, font)
Construct a wx.ItemAttr with the specified foreground and background colours and font.
Returns True if the currently set background colour is valid.
bool
Returns True if either text or background colour is set.
bool
See also
Returns True if the currently set font is valid.
bool
Returns True if the currently set text colour is valid.
bool
Returns True if this object has no custom attributes set.
bool
Sets a new background colour.
colour (wx.Colour)
None
Sets a new text colour.
colour (wx.Colour)
None
Compare two item attributes for inequality.
other (wx.ItemAttr)
bool
Compare two item attributes for equality.
other (wx.ItemAttr)
bool
See GetTextColour and SetTextColour