def data(self, column, role=Qt.DisplayRole):
    if (role in (Qt.EditRole, Qt.DisplayRole, Qt.UserRole)):
        column = (0 if (column == 1) else 1)
    return super().data(column, role)
def data(self, column, role=Qt.DisplayRole):
    if (role in (Qt.EditRole, Qt.DisplayRole, Qt.UserRole)):
        column = (0 if (column == 1) else 1)
    return super().data(column, role)