Ejemplo n.º 1
0
 def on_callableLocationSelect_clicked(self):
     name = None
     calltype = self.callType
     if calltype in self.fsTypes:
         filename = QFileDialog.getOpenFileName(self, "Select %s" % self.callTypeText, "", "Executable file (*.*)")
         if filename:
             name = filename
     elif calltype in self.pythonTypes:
         dlg = SysPathDialog(self)
         if dlg.exec_() == dlg.Accepted:
             name = dlg.selectedEdit.text()
     elif not calltype:
         QMessageBox.warning(self, "Invalid Type", "Select a callable type first.")
     else:
         pass  # unknownType item (0) selected
     if name is not None:
         self.locationText = name
         self.emitChanged()
Ejemplo n.º 2
0
 def on_callableLocationSelect_clicked(self):
     name = None
     calltype = self.callType
     if calltype in self.fsTypes:
         filename = QFileDialog.getOpenFileName(
             self, 'Select %s' % self.callTypeText, '',
             'Executable file (*.*)')
         if filename:
             name = filename
     elif calltype in self.pythonTypes:
         dlg = SysPathDialog(self)
         if dlg.exec_() == dlg.Accepted:
             name = dlg.selectedEdit.text()
     elif not calltype:
         QMessageBox.warning(self, 'Invalid Type',
                             'Select a callable type first.')
     else:
         pass  # unknownType item (0) selected
     if name is not None:
         self.locationText = name
         self.emitChanged()
Ejemplo n.º 3
0
 def selector(self):
     dlg = SysPathDialog(self)
     if dlg.exec_() == dlg.Accepted:
         widget = getattr(self, target)
         widget.setText(dlg.selectedEdit.text())
Ejemplo n.º 4
0
 def selector(self):
     dlg = SysPathDialog(self)
     if dlg.exec_() == dlg.Accepted:
         widget = getattr(self, target)
         widget.setText(dlg.selectedEdit.text())