Removed first window timeout
This commit is contained in:
parent
a04babb479
commit
15a4db94db
|
@ -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_'])
|
||||
|
|
Loading…
Reference in New Issue