From 5129036b8df7fb5262c39401f2529bcc6c920029 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Thu, 6 Dec 2018 11:49:30 -0500 Subject: [PATCH] Changed call to LayoutAndRead to Layout().Read() --- DemoPrograms/Demo_Multithreaded_Logging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DemoPrograms/Demo_Multithreaded_Logging.py b/DemoPrograms/Demo_Multithreaded_Logging.py index 095433a2..b5f0deb6 100644 --- a/DemoPrograms/Demo_Multithreaded_Logging.py +++ b/DemoPrograms/Demo_Multithreaded_Logging.py @@ -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