Renamed return value from Read call from button to event... EVERYWHERE
This commit is contained in:
parent
43526e0182
commit
c79a8772cc
86 changed files with 7992 additions and 12709 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue