class_docstr: Thread with an event object to stop itself.
  
  Args:
      stop_event (threading.Event): Event that stops the thread if it is set.
      *args, **kwargs: Forwarded to `threading.Thread`.
class_docstr_tok: ["Thread","with","an","event","object","to","stop","itself",".","Args",":","stop_event","(","threading.Event",")",":","Event","that","stops","the","thread","if","it","is","set",".","*","args",",","*","*","kwargs",":","Forwarded","to","`","threading.Thread","`","."]
code: def __init__(self, stop_event, *args, **kwargs):
      super(StoppableThread, self).__init__(*args, **kwargs)
      self.stop_event = stop_event
  
imports: import threading
label_desc: Use image node_id 1 to create a new StoppableThread object from inherited base classes: threading with example: obj = StoppableThread(stop_event)