Merge pull request #863 from MikeTheWatchGuy/Dev-latest
Changed call to LayoutAndRead to Layout().Read()
This commit is contained in:
commit
be7bd6376a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue