Python Digital Clock
from tkinter import * from tkinter.ttk import * from time import strftime root=Tk() root.resizable( 0 , 0 ) root.geometry( "950x200" ) root[ "bg" ] = "black" root.title( "Clock" ) def time (): st=strftime( "%I:%M:%S %p" ) label.config( text =st) label.after( 1000 , time) label=Label(root , font =( "ds-digital" , 150 ) , background = "black" , foreground = "red" ) label.pack( anchor = "center" ) time() mainloop()