Python Programming clock source code....

KHROME STUDIOS

Hello friends, This is my blog on python tutorials...........

There I am going to provide you a source code of python coding of a Digital Clock...

Note:-- The source code is given here, you can copy it from here:

import sys
from tkinter import *
import time

def  clock():
    c_time = time.strftime("%H:%M:%S")
    clock.config(text=c_time)
    clock.after(100,Kroneclock)

root = Tk()
root.title("Krone Digital clock")

message = Label(root, font=("arial",100,"italic"), text="RealTime",bg="yellow", fg="blue")
message.grid(row=0 , column=0)
clock = Label(root, font=("times",150,"bold"),bg="black" ,fg="red")
clock.grid(row=1 , column=0)

clock()
mainloop()

Hope you like the blog and enjoy it...........

Previous
Next Post »