fix light functionality to work as intended

This commit is contained in:
UpstreamData
2022-04-29 13:25:08 -06:00
parent 247cf0ccc2
commit 89c8a16900
2 changed files with 7 additions and 20 deletions

View File

@@ -22,6 +22,10 @@ async def ui():
table = window["ip_table"].Widget
table.bind("<Control-Key-c>", lambda x: copy_from_table(table))
table.bind("<Control-Key-a>", lambda x: table_select_all())
# light tag shows red row for fault lights
table.tag_configure("bad", foreground="white", background="orange")
table.tag_configure("light", foreground="white", background="red")
table.tag_configure("light+bad", foreground="white", background="red")
while True:
event, value = window.read(timeout=0)
if event in (None, "Close", sg.WIN_CLOSED):