From 2d37dd487f0571ce94a0e4e966931dd6697d685f Mon Sep 17 00:00:00 2001 From: Aaron Perley Date: Tue, 11 Oct 2016 02:03:49 -0400 Subject: Add event passing between webapp and show --- ShowRunner.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ShowRunner.py (limited to 'ShowRunner.py') diff --git a/ShowRunner.py b/ShowRunner.py new file mode 100644 index 0000000..5a43a99 --- /dev/null +++ b/ShowRunner.py @@ -0,0 +1,16 @@ +from bridge import Bridge +from fish_show import FishShow +from constants import * + +import sys +sys.path.append('webapp') +from run import server_thread, send_queue, recv_queue + +def run_show(): + server_thread.start() + bridge = Bridge() + show = FishShow(bridge, send_queue=recv_queue, recv_queue=send_queue) + #show = SunriseShow(bridge) + show.run(framerate=FRAME_RATE) + +run_show() \ No newline at end of file -- cgit v1.3.1