I want to change the color of a label twice in the same function. I can't seem to get that to work.
The function is something like
def do_work():
print("in progress")
label.config(font=("Calibri", 1, "bold"), fg="white")
# run calculations
print("complete")
label.config(font=("Calibri", 1, "bold"), fg="green")
It seems like tkinter only allows one of these labels to work. It feels like I'm missing something fundamental about how tkinter works. Thank you.
Here is sample code how you can change the color of the Label (after one second):
Creates this application (clicking changes the first yellow text to white then after one second to green):