def stop ( self ) : if self . _progressing : self . _progressing = False self . _thread . join ( )
python how to stop current thread
Stop the progress bar .
def stop(self):
        """Stop the progress bar."""
        if self._progressing:
            self._progressing = False
            self._thread.join()