Changed call to LayoutAndRead to Layout().Read()

This commit is contained in:
MikeTheWatchGuy 2018-12-06 11:49:30 -05:00
parent 1a08f8e073
commit 5129036b8d
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import sys
if sys.version_info[0] >= 3:
import PySimpleGUI as sg
import PySimpleGUIQt as sg
else:
import PySimpleGUI27 as sg
@ -57,7 +57,7 @@ def main():
[sg.Button('Start', bind_return_key=True, key='_START_'), sg.Button('Exit')]
]
window.LayoutAndRead(layout, non_blocking=True)
window.Layout(layout).Read(timeout=0)
appStarted = False
# Setup logging and start app