Merge pull request #1709 from PySimpleGUI/Dev-latest

Added an example of setting text coloir to white with red background.
This commit is contained in:
MikeTheWatchGuy 2019-07-19 22:33:14 -04:00 committed by GitHub
commit 8bf4b87fc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ while True:
data.append(data[i]) data.append(data[i])
window.FindElement('_table_').Update(values = data) window.FindElement('_table_').Update(values = data)
elif event == 'Update': elif event == 'Update':
window.FindElement('_table_').Update( row_colors=((8,'red'), (9,'black'))) window.FindElement('_table_').Update( row_colors=((8,'white', 'red'), (9,'black')))
# sg.Popup(event, values) # sg.Popup(event, values)
# print(event, values) # print(event, values)