示例#1
0
    def configure(self):

        d = ConfigureDialog(self._state,
                            QtGui.QApplication.activeWindow().currentWidget())
        d.setModal(True)
        if d.exec_():
            self._state = d.getState()

        self._configured = d.validate()
        if self._configured and self._configuredObserver is not None:
            self._configuredObserver()
示例#2
0
    def configure(self):
        d = ConfigureDialog(self._state)
        d.setModal(True)
        if d.exec_():
            self._state = d.getState()

        self._configured = d.validate()
        if self._configured and self._configuredObserver != None:
            self._configuredObserver()
示例#3
0
    def configure(self):
        
        d = ConfigureDialog(self._state, QtGui.QApplication.activeWindow().currentWidget())
        d.setModal(True)
        if d.exec_():
            self._state = d.getState()

        self._configured = d.validate()
        if self._configured and self._configuredObserver != None:
            self._configuredObserver()
示例#4
0
 def deserialize(self, string):
     self._state.deserialize(string)
     d = ConfigureDialog(self._state)
     self._configured = d.validate()
示例#5
0
 def deserialize(self, string):
     self._state.deserialize(string)
     d = ConfigureDialog(self._state)
     self._configured = d.validate()
示例#6
0
 def deserialize(self, location):
     self._setStepLocation(location)
     s = QtCore.QSettings(os.path.join(self._step_location, STEP_SERIALISATION_FILENAME), QtCore.QSettings.IniFormat)
     self._state.load(s)
     d = ConfigureDialog(self._state)
     self._configured = d.validate()