예제 #1
0
파일: lookupDlg.py 프로젝트: Guillon88/stdm
 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()
예제 #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"))