For example:
from tkinter import *
root = Tk()
root.state=("zoomed")
counter = 0
word = ("Placeholder")
lbl_point = Label(root, text="Points: " + counter
lbl_point.pack
txt_guess = Entry(root, text="You're guess?")
txt_guess.pack(side=TOP)
if txt_guess.get() == word:
counter = counter + 1
print("debug" + counter)
else:
print("placeholder incorrect")
root.mainloop()
The label "lbl_point" doesn't update when "counter" changes numbers.
I've tried adding root.update_idletasks()
at the end of "if txt_guess.get() == word
but it didn't change anything.
Any help is appreciated.