Class k.u.o.SummaryLabel(
ListLabel
):
Part of
kiwi.ui.objectlist
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.
Function
__init__
Constructor.
Function
update_total
Recalculate the total value of all columns
Function
_on_klist__cell_edited
Undocumented
def
__init__(self, klist, column, label=_('Total:'), value_format='%s', font_desc=None):
Constructor.
param
klist
list to follow
type
klist
kiwi.ui.objectlist.ObjectList
param
column
name of a column in a klist
type
column
string
param
label
label
type
label
string
param
value_format
format string used to format value
type
value_format
string
def
update_total(self):
Recalculate the total value of all columns
def
_on_klist__cell_edited(self, klist, object, attribute):
Undocumented