Demo of new color format "fg on bg"
This commit is contained in:
parent
baf339ad4e
commit
a63d274b91
1 changed files with 1 additions and 1 deletions
|
@ -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':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue