def __init__(self, series_name, series_index): if series_name: text = '%s [%s]' % (series_name, fmt_sidx(series_index)) else: text = '' ReadOnlyTableWidgetItem.__init__(self, text) self.series_name = series_name self.series_index = series_index
def __init__(self, text, sort_key): ReadOnlyTableWidgetItem.__init__(self, text) self.sort_key = sort_key