Exemplo n.º 1
0
 def closeEvent(self, event):
     """
     When the dock widget is closed
     :param event: close event
     """
     if self.__maxSpin is not None:
         Signal.safelyDisconnect(self.__maxSpin.valueChanged, self.__reScalePlot)
         self.__maxSpin = None
     if self.__minSpin is not None:
         Signal.safelyDisconnect(self.__minSpin.valueChanged, self.__reScalePlot)
         self.__minSpin = None
     if self.__saveButton is not None:
         Signal.safelyDisconnect(self.__saveButton.clicked, self.__save)
         self.__saveButton = None
     if self.__libCombo is not None:
         Signal.safelyDisconnect(self.__libCombo.currentIndexChanged, self.__setLib)
         self.__libCombo = None
     self.closeSignal.emit()
     if self.__marker is not None:
         self.__marker.hide()
     QDockWidget.closeEvent(self, event)
Exemplo n.º 2
0
 def closeEvent(self, event):
     """
     When the dock widget is closed
     :param event: close event
     """
     if self.__maxSpin is not None:
         Signal.safelyDisconnect(self.__maxSpin.valueChanged, self.__reScalePlot)
         self.__maxSpin = None
     if self.__minSpin is not None:
         Signal.safelyDisconnect(self.__minSpin.valueChanged, self.__reScalePlot)
         self.__minSpin = None
     if self.__saveButton is not None:
         Signal.safelyDisconnect(self.__saveButton.clicked, self.__save)
         self.__saveButton = None
     if self.__libCombo is not None:
         Signal.safelyDisconnect(self.__libCombo.currentIndexChanged, self.__setLib)
         self.__libCombo = None
     self.closeSignal.emit()
     if self.__marker is not None:
         self.__marker.hide()
     QDockWidget.closeEvent(self, event)
Exemplo n.º 3
0
 def closeEvent(self, event):
     self.emit(SIGNAL("closed(PyQt_PyObject)"), self)
     del self.mainWidget
     return QDockWidget.closeEvent(self, event)
Exemplo n.º 4
0
 def closeEvent(self, event):
     self.closed.emit()
     return QDockWidget.closeEvent(self, event)
Exemplo n.º 5
0
 def closeEvent( self, event ):
     self.closed.emit()
     return QDockWidget.closeEvent( self, event )
Exemplo n.º 6
0
 def closeEvent(self, event):
     self.emit(SIGNAL("closed(PyQt_PyObject)"), self)
     QObject.disconnect(self.butSaveAs, SIGNAL("clicked()"), self.saveAs)
     return QDockWidget.closeEvent(self, event)
Exemplo n.º 7
0
 def closeEvent(self, event):
     self.emit(SIGNAL("closed(PyQt_PyObject)"), self)
     del self.mainWidget
     return QDockWidget.closeEvent(self, event)
 def closeEvent(self, event):
     self.emit( SIGNAL( "closed(PyQt_PyObject)" ), self )
     QObject.disconnect(self.butSaveAs, SIGNAL("clicked()"), self.saveAs)
     return QDockWidget.closeEvent(self, event)