Renamed return value from Read call from button to event... EVERYWHERE

This commit is contained in:
MikeTheWatchGuy 2018-10-15 16:07:23 -04:00
parent 43526e0182
commit c79a8772cc
86 changed files with 7992 additions and 12709 deletions

View file

@ -45,9 +45,9 @@ def main():
graph_value = 250
while True:
# time.sleep(.2)
button, values = window.ReadNonBlocking()
print(button, values)
if button == 'Quit' or values is None:
event, values = window.ReadNonBlocking()
print(event, values)
if event == 'Quit' or values is None:
break
graph_offset = random.randint(-10, 10)
graph_value = graph_value + graph_offset