Digital Clock Mini Project in Python simply created using PyCharm IDE,
You can Download PyCharm from here:
https://www.jetbrains.com/pycharm/download/#section=windows
.
PyCharm Community Edition is a fully working Free Edition,
built on an open-source platform, so you can enjoy learning free of cost.
.
for more useful mini-projects in Python, Java, C#
Please subscribe to Kaalaratham Tamil Tholaikaatchi.
.
Source Code:
Just Copy and Paste This sample code below.
from tkinter import *
from tkinter import ttk
from time import strftime
root =Tk()
root.title("MyClock")
def refresh_time():
dt=strftime('%H:%M:%S %p')
tlbl.config(text=dt)
tlbl.after(1000,refresh_time)
tlbl=Label(root,font=('Liquid Crystal', 40, 'normal'),
background='#4495EE',
foreground='black')
tlbl.pack(anchor='center')
refresh_time()
mainloop()