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

@ -39,8 +39,8 @@ window = sg.Window('My new window', default_element_size=(12, 1), auto_size_text
i = 0
while True: # Event Loop
button, value = window.ReadNonBlocking()
if button == 'Exit':
event, value = window.ReadNonBlocking()
if event == 'Exit':
window.CloseNonBlocking()
break
if value is None: