The program I just wrote is my playground for finding out how Tkinter works.
My question is how do I display my variable \"timelabel\" as a Label.
I allready made a
You should have written an MCVE so that one can test your code, especially that things are missing (such as Presstoshowtextandpic()
).
When reading the rest of your code, I think you need to read about variable classes and modify Clockupdate() as follows:
def Clockupdate(time):
timelabel = StringVar() # modified
timelabel.set(time) # added
timerefresher = Label(root, textvariable=timelabel.get()) #modified
timerefresher.pack()
P.S. You should write clock_update() instead of Clockupdate()