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

@ -33,7 +33,7 @@ window = sg.Window('My window with tabs', default_element_size=(12,1)).Layout(la
print('Are there enough tabs for you?')
while True:
button, values = window.Read()
print(button,values)
if button is None: # always, always give a way out!
event, values = window.Read()
print(event, values)
if event is None: # always, always give a way out!
break