Skip to content Skip to sidebar Skip to footer

Updating Tkinter Window

I've got a simple Tkinter window that shows if a production line is up or down and if down for how long. However, I can't figure out how to get it to update the labels of each line

Solution 1:

Each line object has a label as a child. You can simply call configure on the label object to change it. There's no need to use a StringVar:

lines[inp].label.configure(text="...", background="...")

Post a Comment for "Updating Tkinter Window"