Clock
unknown
abc
2 years ago
361 B
5
Indexable
import tkinter as tk import time def update_time(): current_time = time.strftime("%H:%M:%S") clock_label.config(text=current_time) clock_label.after(1000, update_time) root = tk.Tk() root.title("Clock") clock_label = tk.Label(root, font=("times", 40, "bold"), bg="white") clock_label.pack(fill="both", expand=True) update_time() root.mainloop()
Editor is loading...