Exemplo n.º 1
0
 def addNewLookupChoice(self):
     '''Add new choice to lookup table'''
     lkDlg = ADDLookupValue(self)
     if lkDlg.exec_()== QDialog.Accepted:
         lkName = lkDlg.value
         self.handler.addLookupValue(self.cboTable.currentText(), lkName)
     self.showDefinedLookupChoices()
Exemplo n.º 2
0
 def addLookupValue(self):
     if self.tableName == None:
         self.ErrorInfoMessage(QApplication.translate("WorkspaceLoader","No table is selected"))
         return
     if self.tableName!=None and self.tableName.startswith("check"):
         lkDlg = ADDLookupValue(self)
         if lkDlg.exec_() == QDialog.Accepted:
             lkName = lkDlg.value
             self.addLookupToWidget(lkName)
     else:
         self.ErrorInfoMessage(QApplication.translate("WorkspaceLoader","Selected table is not a lookup"))