def __openText(self, item, record): self.dlgOpen=dlgText(app=kuraapp.app, parent=self, title='Edit Text', firstTabTitle="Text", record=record, mode= UPDATE, tableDef=kuraapp.app.tables["lng_text"]) self.connect(self.dlgOpen, PYSIGNAL("sigAcceptData"), self.slotOpenTextAccept) self.dlgOpen.show()
def open(self): try: record, lvi=self.textSelector.currentRecord() except TypeError: # nothing selected return self.dlgOpen=dlgText(kuraapp.app, self, 'Edit Text', "Text", record, UPDATE, kuraapp.app.tables["lng_text"]) self.connect(self.dlgOpen, PYSIGNAL("sigAcceptData"), self.slotOpenAccept) self.dlgOpen.show()