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()
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()
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()
def deserialize(self, string): self._state.deserialize(string) d = ConfigureDialog(self._state) self._configured = d.validate()
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()