def Stop(self):                                    
        """ Stop the stopwatch, ignore if stopped. """
        if self._running:
            self.after_cancel(self._timer)            
            self._elapsedtime = time.time() - self._start    
            self._setTime(self._elapsedtime)
            self._running = 0
 Stop the stopwatch, ignore if stopped. 
recipes/Python/578666_Stopwatch_with_laps_in_Tkinter/recipe-578666.py