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
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. |
See |
wx.
ItemAttr
(object)¶Possible constructors:
ItemAttr() -> None
ItemAttr(colText : Colour, colBack : Colour, font : Font) -> None
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.
None
__init__ (self, colText : Colour, colBack : Colour, font : 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
SetBackgroundColour
(self, colour : Colour)¶Sets a new background colour.
colour (wx.Colour) –
None
SetTextColour
(self, colour : Colour)¶Sets a new text colour.
colour (wx.Colour) –
None
__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