'Set flags'

def flags(self, index):

    if (index.column() == 0):
        return (Qt.ItemIsEnabled | Qt.ItemIsSelectable)
    return Qt.ItemFlags((QAbstractTableModel.flags(self, index) | Qt.ItemIsEditable))
