Class k.u.o.ColoredColumn(Column):

Part of kiwi.ui.objectlist

I am a column which can colorize the text of columns under certain circumstances. I take a color and an extra function which will be called for each row

Example, to colorize negative values to red:
>>> def colorize(value):
...   return value < 0
...
... ColoredColumn('age', data_type=int, color='red',
...               data_func=colorize),
Function__init__
Creates a new Column, which describes how a column in a
Functionon_attach_rendererUndocumented
Functionrenderer_funcUndocumented
def __init__(self, attribute, title=None, data_type=None, color=None, data_func=None, **kwargs):
Creates a new Column, which describes how a column in a ObjectList should be rendered.
def on_attach_renderer(self, renderer):
Undocumented
def renderer_func(self, renderer, data):
Undocumented