def update(self): data = { 'id': self._id, 'id_task': self.comboBox_tasks.currentData(), 'id_attachment': 1, 'name': self.lineEdit_name.text(), 'description': self.textEdit.toPlainText(), 'archived': False } idea_pool.update_idea(data) self.hide() self.saveSignal.emit(data)
def update_idea(row): idea_pool.update_idea(row)