Release 3.30. New PySimpleGUIdebugger release to PyPI

This commit is contained in:
MikeTheWatchGuy 2019-05-24 21:04:15 -04:00
parent bf762e12b9
commit 7348cb67ba
8 changed files with 527 additions and 309 deletions

View file

@ -1,14 +1,14 @@
import PySimpleGUI as sg
import PSGdebugger
import PySimpleGUIdebugger
"""
Demo program that shows you how to integrate the PySimpleGUI Debugger
into your program.
There are TWO steps, and they are copy and pastes.
1. At the top of your app to debug add
import PSGdebugger
import PySimpleGUIdebugger
2. At the end of your app's event loop add
PSGdebugger.refresh(locals(), globals())
PySimpleGUIdebugger.refresh(locals(), globals())
"""
@ -30,9 +30,9 @@ counter = 0
timeout = 100
while True: # Event Loop
PySimpleGUIdebugger.refresh(locals(), globals())
event, values = window.Read(timeout=timeout)
if event in (None, 'Exit'):
break
counter += 1
window.Element('_OUT_').Update(values['_IN_'])
PSGdebugger.refresh(locals(), globals())