runner.py 304 B

123456789101112
  1. import test, threading
  2. from sccd.runtime.statecharts_core import Event
  3. controller = test.Controller(False)
  4. def raw_inputter():
  5. while 1:
  6. controller.addInput(Event(raw_input(), "input", []))
  7. thread = threading.Thread(target=raw_inputter)
  8. thread.daemon = True
  9. thread.start()
  10. controller.start()