Trying to make a simple clock work is harder then I thought | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Trying to make a simple clock work is harder then I thought

I keep having problems with the syntax error in pydroid 3 this is the code I am using but it simply just keeps giving me syntax errors and won't run it I'm pretty new to python and don't know how to fix this from tkinter import * from time import strftime def time(): clock=strftime('%H:%M:%S:%P') label.configure(text=clock) label.after(1000, time) root=Tk() Label=Label(root,fg="red",bg="green") Label.pack() time() root.mainloop()

21st Feb 2022, 12:23 AM
Braiden Crow
Braiden Crow - avatar
1 Answer
+ 1
read the error. What is "label "
21st Feb 2022, 1:27 AM
Slick
Slick - avatar