From f491a9f722e593439337e074ef82e7f79dbc05fc Mon Sep 17 00:00:00 2001 From: Crista Lopes Date: Thu, 17 Oct 2013 20:35:27 -0700 Subject: [PATCH] Changed name of variable, so that it doesn't get confused with terminology used in constraints --- 32-reactive/tf-32.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/32-reactive/tf-32.py b/32-reactive/tf-32.py index 8cdd9a3..cb34612 100644 --- a/32-reactive/tf-32.py +++ b/32-reactive/tf-32.py @@ -39,10 +39,10 @@ class FreqObserver(threading.Thread): # # The active part, dataflow-like # -automatic = False +interactive = True def get_input(): - global automatic - if automatic: + global interactive + if not interactive: return True while True: @@ -50,7 +50,7 @@ def get_input(): if key == 32: # space bar return True elif key == 27: # ESC - automatic = True + interactive = False return True else: pass