(self, event)
return super().closeEvent(event)
Safely close the thread.
Safely close the thread.
Safely close the thread .
def closeEvent(self, event):
        """Safely close the thread."""
        if self.thread():
            self.stopTracking()
        return super().closeEvent(event)
def closeEvent ( self , event ) : if self . thread ( ) : self . stopTracking ( ) return super ( ) . closeEvent ( event )