From 15a4db94db879d3df0389f43a1f9246862872071 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Fri, 30 Nov 2018 14:04:05 -0500 Subject: [PATCH] Removed first window timeout --- DemoPrograms/Demo_Input_Auto_Complete.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DemoPrograms/Demo_Input_Auto_Complete.py b/DemoPrograms/Demo_Input_Auto_Complete.py index 0c598671..fa67c566 100644 --- a/DemoPrograms/Demo_Input_Auto_Complete.py +++ b/DemoPrograms/Demo_Input_Auto_Complete.py @@ -52,7 +52,7 @@ window = sg.Window('Window Title', return_keyboard_events=True).Layout(layout) sel_item = -1 while True: # Event Loop - event, values = window.Read(timeout=1000) + event, values = window.Read() if event is None or event == 'Exit': break if event != sg.TIMEOUT_KEY: @@ -84,7 +84,7 @@ while True: # Event Loop window.Element('_INPUT_').Update('') try: - ev2, vals2 = fwindow.Read(timeout=10) + ev2, vals2 = fwindow.Read(timeout=0) if ev2 != sg.TIMEOUT_KEY: fwindow.Close() # sg.Popup('Chose from window', vals2['_FLOATING_LISTBOX_'])