diff --git a/DemoPrograms/Demo_Debugger_Integration.py b/DemoPrograms/Demo_Debugger_Integration.py index 48e2d538..45c9462e 100644 --- a/DemoPrograms/Demo_Debugger_Integration.py +++ b/DemoPrograms/Demo_Debugger_Integration.py @@ -29,7 +29,7 @@ window = sg.Window('This is your Application Window', layout) counter = 0 timeout = 100 -while True: # Event Loop +while True: # Your Event Loop PySimpleGUIdebugger.refresh(locals(), globals()) # STEP 3 - refresh debugger event, values = window.Read(timeout=timeout) if event in (None, 'Exit'): @@ -37,4 +37,5 @@ while True: # Event Loop elif event == 'Ok': print('You clicked Ok.... this is where print output goes') counter += 1 - window.Element('_OUT_').Update(values['_IN_']) \ No newline at end of file + window.Element('_OUT_').Update(values['_IN_']) +window.Close()