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:
         self._configuredObserver()
 def configure(self):
     d = ConfigureDialog(self._state)
     d.setModal(True)
     if d.exec_():
         self._state = d.getState()
         self.serialize(self._location)
         
     self._configured = d.validate()
     if self._configured and self._configuredObserver:
         self._configuredObserver()