Table Of Contents

Previous topic

ListItem

Next topic

ListView

This Page

phoenix_title ListItemAttr

Represents the attributes (color, font, .

..) of a ListCtrl’s ListItem.


class_hierarchy Inheritance Diagram

Inheritance diagram for class ListItemAttr

Inheritance diagram of 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 ListItemAttr(object)

Represents the attributes (color, font, .

Possible constructors:

ListItemAttr()

ListItemAttr(colText, colBack, font)

Methods



__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self)

Default Constructor.



__init__ (self, colText, colBack, font)

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

Parameters:





GetBackgroundColour(self)

Returns the currently set background color.

Return type: Colour


GetFont(self)

Returns the currently set font.

Return type: Font


GetTextColour(self)

Returns the currently set text color.

Return type: 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 (Colour) –


SetFont(self, font)

Sets a new font.

Parameters:font (Font) –


SetTextColour(self, colour)

Sets a new text color.

Parameters:colour (Colour) –

Properties



BackgroundColour

See GetBackgroundColour and SetBackgroundColour



Font

See GetFont and SetFont



TextColour

See GetTextColour and SetTextColour