Phoenix Logo

phoenix_title wx.ListItemAttr

Represents the attributes (color, font, ...) of a wx.ListCtrl‘s wx.ListItem.


class_hierarchy Class Hierarchy

Inheritance diagram for class ListItemAttr:

method_summary Methods Summary

__init__ Default Constructor.
GetBackgroundColour Returns the currently set background color.
GetFont Returns the currently set font.
GetTextColour Returns the currently set text color.
HasBackgroundColour Returns True if the currently set background color is valid.
HasFont Returns True if the currently set font is valid.
HasTextColour Returns True if the currently set text color is valid.
SetBackgroundColour Sets a new background color.
SetFont Sets a new font.
SetTextColour Sets a new text color.

api Class API



class wx.ListItemAttr(object)

Possible constructors:

ListItemAttr()

ListItemAttr(colText, colBack, font)

Represents the attributes (color, font, ...) of a ListCtrl’s ListItem.


Methods



__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self)

Default Constructor.



__init__ (self, colText, colBack, font)

Construct a wx.ListItemAttr with the specified foreground and background colors and font.

Parameters:





GetBackgroundColour(self)

Returns the currently set background color.

Return type: wx.Colour


GetFont(self)

Returns the currently set font.

Return type: wx.Font


GetTextColour(self)

Returns the currently set text color.

Return type: wx.Colour


HasBackgroundColour(self)

Returns True if the currently set background color is valid.

Return type:bool


HasFont(self)

Returns True if the currently set font is valid.

Return type:bool


HasTextColour(self)

Returns True if the currently set text color is valid.

Return type:bool


SetBackgroundColour(self, colour)

Sets a new background color.

Parameters:colour (wx.Colour) –


SetFont(self, font)

Sets a new font.

Parameters:font (wx.Font) –


SetTextColour(self, colour)

Sets a new text color.

Parameters:colour (wx.Colour) –

Properties



BackgroundColour

See GetBackgroundColour and SetBackgroundColour



Font

See GetFont and SetFont



TextColour

See GetTextColour and SetTextColour