Changed name of variable, so that it doesn't get confused with terminology used in constraints
This commit is contained in:
@@ -39,10 +39,10 @@ class FreqObserver(threading.Thread):
|
|||||||
#
|
#
|
||||||
# The active part, dataflow-like
|
# The active part, dataflow-like
|
||||||
#
|
#
|
||||||
automatic = False
|
interactive = True
|
||||||
def get_input():
|
def get_input():
|
||||||
global automatic
|
global interactive
|
||||||
if automatic:
|
if not interactive:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
@@ -50,7 +50,7 @@ def get_input():
|
|||||||
if key == 32: # space bar
|
if key == 32: # space bar
|
||||||
return True
|
return True
|
||||||
elif key == 27: # ESC
|
elif key == 27: # ESC
|
||||||
automatic = True
|
interactive = False
|
||||||
return True
|
return True
|
||||||
else: pass
|
else: pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user