Merge pull request #863 from MikeTheWatchGuy/Dev-latest

Changed call to LayoutAndRead to Layout().Read()
This commit is contained in:
MikeTheWatchGuy 2018-12-06 11:49:57 -05:00 committed by GitHub
commit be7bd6376a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import sys import sys
if sys.version_info[0] >= 3: if sys.version_info[0] >= 3:
import PySimpleGUI as sg import PySimpleGUIQt as sg
else: else:
import PySimpleGUI27 as sg import PySimpleGUI27 as sg
@ -57,7 +57,7 @@ def main():
[sg.Button('Start', bind_return_key=True, key='_START_'), sg.Button('Exit')] [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 appStarted = False
# Setup logging and start app # Setup logging and start app