Beispiel #1
0
 def on_action_Edit_activated(self):
     edit_rows = util.getSelectedRows(self.tableView)
     if len(edit_rows) != 1:
         QMessageBox.information(self,
         u'提示',
         u'请仅选择一行进行编辑')
         return
     record = self.model.records[edit_rows[0]]
     editdialog = EditDialog(self, record, self.update_count_result)
     editdialog.show()
Beispiel #2
0
	def on_tableView_doubleClicked(self, index):
		record = self.model.getRecord(index)
		editdialog = EditDialog(self, record, self.parent.update_count_result)
		editdialog.show()
Beispiel #3
0
 def on_tableView_doubleClicked(self, index):
     record = self.model.getRecord(index)
     editdialog = EditDialog(self, record, self.update_count_result)
     editdialog.show()