Merge pull request #2296 from PySimpleGUI/Dev-latest

Opened debug window right away in the test harness to simplify the pr…
This commit is contained in:
PySimpleGUI 2019-12-02 19:35:57 -05:00 committed by GitHub
commit e38438221b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/python3 #!/usr/bin/python3
from tables.tests.test_backcompat import BackCompatAttrsTestCase from tables.tests.test_backcompat import BackCompatAttrsTestCase
version = __version__ = "4.7.1.5 Unreleased - included 4.7.1 patch, ability to update ttk buttons, images for ttk buttons, CURRENT_LOOK_AND_FEEL variable, Multiline colored text (FINALLY), experimental gray window warning/nag, Print/Easyprint multiple color output" version = __version__ = "4.7.1.6 Unreleased - included 4.7.1 patch, ability to update ttk buttons, images for ttk buttons, CURRENT_LOOK_AND_FEEL variable, Multiline colored text (FINALLY), experimental gray window warning/nag, Print/Easyprint multiple color output"
port = 'PySimpleGUI' port = 'PySimpleGUI'
# 888888ba .d88888b oo dP .88888. dP dP dP # 888888ba .d88888b oo dP .88888. dP dP dP
@ -12368,12 +12368,13 @@ def main():
) )
# graph_elem.DrawCircle((200, 200), 50, 'blue') # graph_elem.DrawCircle((200, 200), 50, 'blue')
i = 0 i = 0
Print('',location=(0,0), font='Courier 12', size=(60,15), grab_anywhere=True)
while True: # Event Loop while True: # Event Loop
event, values = window.Read(timeout=5) event, values = window.Read(timeout=5)
if event != TIMEOUT_KEY: if event != TIMEOUT_KEY:
print(event, values) print(event, values)
Print(event, location=(0,0), font='Courier 12', size=(60,15), grab_anywhere=True, text_color='green', background_color='white', end='') Print(event, text_color='green', background_color='white', end='')
Print(values, location=(0,0), font='Courier 12', size=(60,15), grab_anywhere=True) Print(values)
if event is None or event == 'Exit': if event is None or event == 'Exit':
break break
if i < 800: if i < 800: