Exemplo n.º 1
0
 def add_location(self):
     self.ui.locationDialog =  addLocationDialog()
     if self.ui.locationDialog.exec_():
         self.closeFlag = self.ui.locationDialog.getClose()
         if self.closeFlag == 0:
             if not isinstance(self.ui.locationDialog.getLocation(), QtCore.QPyNullVariant):
                 self.location = self.ui.locationDialog.getLocation()
Exemplo n.º 2
0
 def add_location(self):
     self.ui.locationDialog = addLocationDialog()
     if self.ui.locationDialog.exec_():
         self.closeFlag = self.ui.locationDialog.getClose()
         if self.closeFlag == 0:
             if not isinstance(self.ui.locationDialog.getLocation(),
                               QtCore.QPyNullVariant):
                 self.location = self.ui.locationDialog.getLocation()
                 self.detail.ui.locationComboBox.addItem(self.location)
                 index = self.detail.ui.locationComboBox.findText(
                     self.location)
                 self.detail.ui.locationComboBox.setCurrentIndex(index)