mirror of
https://github.com/metafy-social/python-scripts.git
synced 2025-04-15 00:57:36 +00:00
Updated readme.md
This commit is contained in:
parent
b46c7e01a4
commit
c68ba11d03
@ -1,27 +0,0 @@
|
|||||||
# Digital Clock
|
|
||||||
## code
|
|
||||||
```
|
|
||||||
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()
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## ISSSUE
|
|
||||||
https://github.com/metafy-social/daily-python-scripts/issues/128#issue-1396619270
|
|
7
Digital-Clock/readme.md
Normal file
7
Digital-Clock/readme.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Digital Clock
|
||||||
|
|
||||||
|
## Preview
|
||||||
|

|
||||||
|
|
||||||
|
## ISSSUE
|
||||||
|
https://github.com/metafy-social/daily-python-scripts/issues/128#issue-1396619270
|
Loading…
x
Reference in New Issue
Block a user