updated red row color on fault light to work with tkinter tags and be sortable.

This commit is contained in:
UpstreamData
2022-02-23 14:35:29 -07:00
parent ca52e40a6a
commit c97d384cf4
3 changed files with 34 additions and 23 deletions

View File

@@ -20,6 +20,8 @@ async def ui():
window.read(timeout=0)
table = window["ip_table"].Widget
table.bind("<Control-Key-c>", lambda x: copy_from_table(table))
# light tag shows red row for fault lights
table.tag_configure("light", foreground="white", background="red")
# left justify the hostnames
table.column(2, anchor=tk.W)
while True: