*************** wx.ListItemAttr *************** Inheritance diagram for `wx.ListItemAttr`: | .. inheritance-diagram:: wx.ListItemAttr | Description =========== Represents the attributes (color, font, ...) of a `wx.ListCtrl `_ `wx.ListItem `_. .. seealso:: `wx.ListCtrl `_, `wx.ListItem `_ Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `AssignFrom <#AssignFrom>`_ * `Destroy <#Destroy>`_ * `GetBackgroundColour <#GetBackgroundColour>`_ * `GetFont <#GetFont>`_ * `GetTextColour <#GetTextColour>`_ * `HasBackgroundColour <#HasBackgroundColour>`_ * `HasFont <#HasFont>`_ * `HasTextColour <#HasTextColour>`_ * `SetBackgroundColour <#SetBackgroundColour>`_ * `SetFont <#SetFont>`_ * `SetTextColour <#SetTextColour>`_ Properties Summary ^^^^^^^^^^^^^^^^^^ * `BackgroundColour <#BackgroundColour>`_ * `Font <#Font>`_ * `TextColour <#TextColour>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__(colText=wx.NullColour, colBack=wx.NullColour, font=wx.NullFont) Construct a `wx.ListItemAttr` with the specified foreground and background colors and font. **Parameters:** * `colText` (`wx.Colour `_) * `colBack` (`wx.Colour `_) * `font` (`wx.Font `_) | **Returns:** `wx.ListItemAttr `_ -------- .. method:: AssignFrom(source) | **Parameters:** * `source` (`wx.ListItemAttr `_) -------- .. method:: Destroy() `No docstrings available for this method.` -------- .. method:: GetBackgroundColour() Returns the currently set background color. | **Returns:** `wx.Colour `_ -------- .. method:: GetFont() Returns the currently set font. | **Returns:** `wx.Font `_ -------- .. method:: GetTextColour() Returns the currently set text color. | **Returns:** `wx.Colour `_ -------- .. method:: HasBackgroundColour() Returns ``True`` if the currently set background color is valid. | **Returns:** `bool` -------- .. method:: HasFont() Returns ``True`` if the currently set font is valid. | **Returns:** `bool` -------- .. method:: HasTextColour() Returns ``True`` if the currently set text color is valid. | **Returns:** `bool` -------- .. method:: SetBackgroundColour(colour) Sets a new background color. **Parameters:** * `colour` (`wx.Colour `_) -------- .. method:: SetFont(font) Sets a new font. **Parameters:** * `font` (`wx.Font `_) -------- .. method:: SetTextColour(colour) Sets a new text color. **Parameters:** * `colour` (`wx.Colour `_) -------- Properties ^^^^^^^^^^ .. attribute:: BackgroundColour See `GetBackgroundColour <#GetBackgroundColour>`_ and `SetBackgroundColour <#SetBackgroundColour>`_ .. attribute:: Font See `GetFont <#GetFont>`_ and `SetFont <#SetFont>`_ .. attribute:: TextColour See `GetTextColour <#GetTextColour>`_ and `SetTextColour <#SetTextColour>`_