Relógio Digital usando tkinter
from time import strftime
from tkinter import *
root = Tk()
root.title('Relógio')
root.geometry("205x90")
root.resizable(False,False)
def time():
string = strftime('%H:%M:%S %p')
lbl.config(text = string)
lbl.after(1000, time)
lbl = Label(root,font=('calibri', 40, 'bold'),bg='#ccffcc', fg='#31736e')
lbl.place(relx=0.05,rely=0.05)
time()
mainloop()
Comentários
Enviar um comentário