More "Demo Program Catchup" updates. Working through them bit by bit.....
This commit is contained in:
parent
1eb653d910
commit
f1e0c7d03f
9 changed files with 87 additions and 57 deletions
|
@ -13,7 +13,7 @@ import PySimpleGUI as sg
|
|||
|
||||
sg.theme('DarkBlue')
|
||||
|
||||
layout = [[sg.Text('', size=(50, 1), relief='sunken', font=('Courier', 11),
|
||||
layout = [[sg.Text('', size=(50, 1), relief='sunken',
|
||||
text_color='yellow', background_color='black',key='-TEXT-', metadata=0)]]
|
||||
|
||||
window = sg.Window('Title', layout, finalize=True)
|
||||
|
@ -27,6 +27,6 @@ while True:
|
|||
if event == sg.WINDOW_CLOSED:
|
||||
break
|
||||
text.metadata = (text.metadata + 1) % 51
|
||||
text.update('█' * text.metadata)
|
||||
text.update(sg.SYMBOL_SQUARE * text.metadata)
|
||||
|
||||
window.close()
|
Loading…
Add table
Add a link
Reference in a new issue