| Home | Trees | Index | Help |
|
|---|
| Package kiwi :: Package ui :: Module objectlist :: Class ColoredColumn |
|
object --+
|
object --+ |
| |
PropertyObject --+
|
Column --+
|
ColoredColumn
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),
| Method Summary | |
|---|---|
| Inherited from Column | |
| |
Returns the value associated with the attribute in model named by attr_name. (Static method) | |
on_attach_renderer(self,
renderer)
| |
| |
renderer_func(self,
renderer,
data)
| |
| Inherited from PropertyObject | |
| |
| |
| |
| |
| Class Variable Summary | |
|---|---|
| Inherited from Column | |
NoneType |
cell_data_func = None |
NoneType |
on_attach_renderer = None |
NoneType |
renderer_func = None |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Oct 9 12:40:55 2006 | http://epydoc.sf.net |