wx.ItemAttr¶Represents the attributes (colour, font, …) of an item of a control with multiple items such as e.g.
New in version 4.1/wxWidgets-3.1.1: (previous versions had a similar ListItemAttr class)
See also
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. |
Class API¶wx.ItemAttr(object)¶Possible constructors:
ItemAttr()
ItemAttr(colText, colBack, font)
Represents the attributes (colour, font, …) of an item of a control with multiple items such as e.g.
__init__(self, *args, **kw)¶__init__ (self)
Default Constructor.
__init__ (self, colText, colBack, font)
Construct a wx.ItemAttr with the specified foreground and background colours and font.
HasBackgroundColour(self)¶Returns True if the currently set background colour is valid.
bool
HasColours(self)¶Returns True if either text or background colour is set.
bool
See also
HasFont(self)¶Returns True if the currently set font is valid.
bool
HasTextColour(self)¶Returns True if the currently set text colour is valid.
bool
IsDefault(self)¶Returns True if this object has no custom attributes set.
bool
__ne__(self)¶Compare two item attributes for inequality.
other (wx.ItemAttr) –
__eq__(self)¶Compare two item attributes for equality.
other (wx.ItemAttr) –
BackgroundColour¶TextColour¶See GetTextColour and SetTextColour