Let's code a CLOCK PROGRAM in python! 🕒

Publicado em: 16 Setembro 2020
no canal de: Bro Code
40,428
1.2k

Python clock program app tutorial for beginners

#Python #clock #program #app #code #GUI #tkinter #tutorial

from tkinter import *
from time import *

def update():
time_string = strftime("%I:%M:%S %p")
time_label.config(text=time_string)

day_string = strftime("%A")
day_label.config(text=day_string)

date_string = strftime("%B %d, %Y")
date_label.config(text=date_string)

window.after(1000,update)


window = Tk()

time_label = Label(window,font=("Arial",50),fg="#00FF00",bg="black")
time_label.pack()

day_label = Label(window,font=("Ink Free",25,"bold"))
day_label.pack()

date_label = Label(window,font=("Ink Free",30))
date_label.pack()

update()

window.mainloop()


Nesta página do site você pode assistir ao vídeo on-line Let's code a CLOCK PROGRAM in python! 🕒 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Bro Code 16 Setembro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 40,428 vezes e gostou 1.2 mil espectadores. Boa visualização!