3 # A thread that can be stopped!
4 # Except it can only be stopped if it checks self.stopped() periodically
5 # So it can sort of be stopped
6 class StoppableThread(threading.Thread):
8 threading.Thread.__init__(self)
9 self._stop = threading.Event()
15 return self._stop.isSet()