import tkinter as tk
from time import strftime
def update_time():
current_time = strftime('%H:%M:%S') # Format: HH:MM:SS
label.config(text=current_time)
label.after(1000, update_time) # Update every second
# Create main window
root = tk.Tk()
root.title("Digital Clock")
# Create a label to display time
label = tk.Label(root, font=('calibri', 40, 'bold'), background='black', foreground='white')
label.pack(anchor='center')
# Start updating the time
update_time()
# Run the GUI event loop
root.mainloop()
Θέμα 18ο: | Απάντηση επί του εγγράφου με αρ. πρωτ 9978/Γ2/23-01-2008 της Διεύθυνσης Σπουδών Δευτεροβάθμιας Εκπαίδευσης/Τμήμα Α΄του |