Merge pull request #4340 from PySimpleGUI/Dev-latest

Had timeout=1 which is a terrible idea (it's old code)
This commit is contained in:
PySimpleGUI 2021-05-29 16:31:33 -04:00 committed by GitHub
commit fd56dbe9fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ def main():
# ------------------- GUI Event Loop ------------------- # ------------------- GUI Event Loop -------------------
while True: # Event Loop while True: # Event Loop
event, values = window.read(timeout=1) event, values = window.read(timeout=0)
# print(event, values) # print(event, values)
if event in (sg.WIN_CLOSED, 'Exit'): if event in (sg.WIN_CLOSED, 'Exit'):
break break