kiwi.ui.objectlist.ColoredColumn(Column) class documentationkiwi.ui.objectlist
(View In Hierarchy)
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 | __init__ | Creates a new Column, which describes how a column in a ObjectList should be rendered. |
| Method | on_attach_renderer | Undocumented |
| Method | renderer_func | Undocumented |
Inherited from PropertyObject (via Column):
| Class Method | __class_init__ | Undocumented |
| Method | __post_init__ | No summary |
| Method | get_attribute_names | Undocumented |
| Method | is_default_value | Undocumented |
| Method | do_set_property | Undocumented |
| Method | do_get_property | Undocumented |
| Method | _set | Undocumented |
| Method | _get | Undocumented |
Inherited from PropertyObject (via Column):
| Class Method | __class_init__ | Undocumented |
| Method | __post_init__ | No summary |
| Method | get_attribute_names | Undocumented |
| Method | is_default_value | Undocumented |
| Method | do_set_property | Undocumented |
| Method | do_get_property | Undocumented |
| Method | _set | Undocumented |
| Method | _get | Undocumented |
Creates a new Column, which describes how a column in a ObjectList should be rendered.
| Parameters | attribute | a string with the name of the instance attribute the column represents. |
| title | the title of the column, defaulting to the capitalized form of the attribute. | |
| data_type | the type of the attribute that will be inserted into the column. | |
| Note | title_pixmap: (TODO) if set to a filename a pixmap will be used *instead* of the title set. The title string will still be used to identify the column in the column selection and in a tooltip, if a tooltip is not set. | |