# Class k.u.o.SummaryLabel(ListLabel):

Part of kiwi.ui.objectlist View In Hierarchy

I am a subclass of ListLabel which you can use if you want to summarize all the values of a specific column. Please note that I only know how to handle number column data types and I will complain if you give me something else.

Method | __init__ | Constructor.
Method | update_total | Recalculate the total value of all columns
Method | _on_klist__cell_edited | Undocumented

Inherited from ListLabel:

Method | set_value | Sets the value of the label.
Method | get_value_widget | Undocumented
Method | get_label_widget | Undocumented
Method | _create_ui | Undocumented
Method | _resize | Undocumented
Method | _on_treeview_column_button__size_allocate | Undocumented
Method | _on_treeview_column__notify_width | Undocumented
Method | _on_list__size_allocate | Undocumented

def __init__(self, klist, column, label=_('Total:'), value_format='%s', font_desc=None):
overrides kiwi.ui.objectlist.ListLabel.__init__
Constructor.

Parameters | klist | list to follow (type: kiwi.ui.objectlist.ObjectList )
| column | name of a column in a klist (type: string )
| label | label (type: string )
| value_format | format string used to format value (type: string )

def update_total(self):
Recalculate the total value of all columns

def _on_klist__cell_edited(self, klist, object, attribute):
Undocumented