Demo of new color format "fg on bg"
This commit is contained in:
parent
baf339ad4e
commit
a63d274b91
|
@ -36,7 +36,7 @@ def main():
|
|||
event, values = window.read()
|
||||
if event == sg.WIN_CLOSED or event == 'Exit':
|
||||
break
|
||||
sg.cprint(event, values)
|
||||
sg.cprint(event, values, colors='white on red')
|
||||
if event == 'Print':
|
||||
sg.cprint(values['-IN-'], text_color=values['-TEXT COLOR-'], background_color=values['-BG COLOR-'])
|
||||
elif event == 'Print short':
|
||||
|
|
Loading…
Reference in New Issue