def __init__(self, *args): ElementTable.__init__(self, *args) self.set_header()
def get_items(self): return dict( zip(ElementTable.get_items(self), [self.item(r, 1).data(2) for r in range(self.rowCount())]))