... [other code] ... DIGITAL CLOCK CODE

DIGITAL CLOCK CODE

DIGITAL CLOCK BY PYTHON PANDIT




# CODE



from tkinter import *
from tkinter.ttk import *

from time import strftime

root = Tk()
root.title('CLOCK BY PYTHON PANDIT')

def time():
    string=strftime('%H:%M:%S %p')
    label.config(text=string)
    label.after(1000, time)

label = Label(root,font=('ds-digital',80),background = 'black', foreground = 'cyan')
label.pack()
time()

mainloop()



# PREVIEW





Post a Comment

Post a Comment (0)

Previous Post Next Post