Part of kiwi.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 |
Method | on_attach_renderer | Undocumented |
Method | renderer_func | Undocumented |
Inherited from Column:
Method | __repr__ | Undocumented |
Method | prop_set_data_type | Undocumented |
Method | attach | Undocumented |
Method | as_string | Undocumented |
Method | set_spinbutton_precision_digits | Set the number of precision digits to be shown in the |
Method | _guess_renderer_for_type | Gusses which CellRenderer we should use for a given type. |
Method | _cell_data_text_func | To render the data of a cell renderer text |
Method | _cell_data_pixbuf_func | To render the data of a cell renderer pixbuf |
Method | _cell_data_combo_func | Undocumented |
Method | _cell_data_spin_func | To render the data of a cell renderer spin |
Method | _on_renderer__toggled | Undocumented |
Method | _on_renderer_toggle_check__toggled | Undocumented |
Method | _on_renderer_toggle_radio__toggled | Undocumented |
Method | _on_renderer_text__edited | Undocumented |
Method | _on_renderer_spin__edited | Undocumented |
Method | _on_renderer_combo__edited | Undocumented |
Method | _on_renderer__edited | Undocumented |
Inherited from PropertyObject (via Column):
Class Method | __class_init__ | Undocumented |
Method | __post_init__ | A hook which is called after the constructor is called. |
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 |
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. |