runner.py 457 B

1234567891011121314151617181920
  1. '''
  2. Created on 27-jul.-2014
  3. @author: Simon
  4. '''
  5. import Tkinter as tk
  6. import target_py.target as target
  7. from sccd.runtime.statecharts_core import Event
  8. import threading
  9. if __name__ == '__main__':
  10. controller = target.Controller()
  11. def raw_inputter():
  12. while 1:
  13. controller.addInput(Event(raw_input(), "input", []))
  14. thread = threading.Thread(target=raw_inputter)
  15. thread.daemon = True
  16. thread.start()
  17. controller.start()