How to Create a Digital Clock with Python 🤔

Publié le: 23 July 2023
sur la chaîne: CodeWithLawrenzo
139
15

Source Code:
import tkinter as tk
import time

def update_time():
current_time = time.strftime("%H:%M:%S")
time_label.config(text=current_time)
root.after(1000, update_time)

root = tk.Tk()
root.title("Digital Clock")

time_label = tk.Label(root, font=("Helvitica", 80))
time_label.pack(padx=50, pady=20)

update_time()
root.mainloop()

#programming #coding #python #howto #clock


Sur cette page du site, vous pouvez voir la vidéo en ligne How to Create a Digital Clock with Python 🤔 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur CodeWithLawrenzo 23 July 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 139 fois et il a aimé 15 téléspectateurs. Bon visionnage!