Merge pull request #123 from Sourodip20kar/Digital-Clock

Digital-Clock issue #128
This commit is contained in:
Advaita Saha 2022-10-07 13:56:38 +05:30 committed by GitHub
commit abefabb986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,17 @@
import tkinter
from time import strftime
top = tkinter.Tk()
top.title('Digital Clock')
top.resizable(0,0)
def time():
string = strftime('%H: %M: %S %p')
clockTime.config(text=string)
clockTime.after(1000, time)
clockTime = tkinter.Label(top, font=('courier new', 40),
background='white',foreground='black')
clockTime.pack(anchor='center')
time()
top.mainloop()

7
Digital-Clock/readme.md Normal file
View File

@ -0,0 +1,7 @@
# Digital Clock
## Preview
![Screenshot 2022-10-04 195233](https://user-images.githubusercontent.com/104223444/193844936-aee558c0-6b43-4096-9b9c-cc3ef23a29ed.png)
## ISSSUE
https://github.com/metafy-social/daily-python-scripts/issues/128#issue-1396619270