Update with PEP8 read call.

This commit is contained in:
PySimpleGUI 2019-11-19 11:25:27 -05:00
parent 79e02c5726
commit 2cfd2f19b1
1 changed files with 2 additions and 2 deletions

View File

@ -6,13 +6,13 @@ import imwatchingyou
This enables you to have a live debugger / REPL in a running PySimpleGUIQt program
"""
layout = [[sg.Text('My PySimpleGUIQt layout')],
[sg.Button('OK'), sg.Button('Debugger'), sg.B('Popout')]]
[sg.B('OK'), sg.B('Debugger'), sg.B('Popout')]]
window = sg.Window('My window', layout)
counter = 0 # something to see updating in the popout window
while True:
event, values = window.Read(timeout=100)
event, values = window.read(timeout=100)
if event is None:
break
if event == 'Debugger':