Skip to content

Commit

Permalink
Create clock,py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sambhav250703 authored Oct 1, 2022
1 parent 3ebe589 commit 8cedf4e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Clock project/clock.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from tkinter import *
from tkinter.ttk import *
from time import strftime
root = Tk()
root.title("Clock")
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(anchor = 'center')
time()
mainloop()

0 comments on commit 8cedf4e

Please sign in to comment.