Table Of Contents

Previous topic

DataViewItem

Next topic

DataViewModel

This Page

phoenix_title DataViewItemAttr

This class is used to indicate to a DataViewCtrl that a certain item (see DataViewItem) has extra font attributes for its renderer.

For this, it is required to override DataViewModel.GetAttr .

Attributes are currently only supported by DataViewTextRendererText.


class_hierarchy Inheritance Diagram

Inheritance diagram for class DataViewItemAttr

Inheritance diagram of DataViewItemAttr


method_summary Methods Summary

__init__ Constructor.
SetBackgroundColour Call this to set the background colour to use.
SetBold Call this to indicate that the item shall be displayed in bold text.
SetColour Call this to indicate that the item shall be displayed with that colour.
SetItalic Call this to indicate that the item shall be displayed in italic text.

api Class API



class DataViewItemAttr(object)

This class is used to indicate to a DataViewCtrl that a certain item (see DataViewItem) has extra font attributes for its renderer.

Possible constructors:

DataViewItemAttr()

Methods



__init__(self)

Constructor.



SetBackgroundColour(self, colour)

Call this to set the background colour to use.

Currently this attribute is only supported in the generic version of DataViewCtrl and ignored by the native GTK+ and OS X implementations.

Parameters:colour (Colour) –

New in version 2.9.4.



SetBold(self, set)

Call this to indicate that the item shall be displayed in bold text.

Parameters:set (bool) –


SetColour(self, colour)

Call this to indicate that the item shall be displayed with that colour.

Parameters:colour (Colour) –


SetItalic(self, set)

Call this to indicate that the item shall be displayed in italic text.

Parameters:set (bool) –