Merge pull request #3074 from PySimpleGUI/Dev-latest

Demo of new color format "fg on bg"
This commit is contained in:
PySimpleGUI 2020-06-27 12:40:23 -04:00 committed by GitHub
commit 6f99e60f92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ def main():
event, values = window.read() event, values = window.read()
if event == sg.WIN_CLOSED or event == 'Exit': if event == sg.WIN_CLOSED or event == 'Exit':
break break
sg.cprint(event, values) sg.cprint(event, values, colors='white on red')
if event == 'Print': if event == 'Print':
sg.cprint(values['-IN-'], text_color=values['-TEXT COLOR-'], background_color=values['-BG COLOR-']) sg.cprint(values['-IN-'], text_color=values['-TEXT COLOR-'], background_color=values['-BG COLOR-'])
elif event == 'Print short': elif event == 'Print short':