From 38099714a640315da90c3a80cc6fa133e96d5646 Mon Sep 17 00:00:00 2001 From: Sourodip Kar <104223444+Sourodip20kar@users.noreply.github.com> Date: Tue, 4 Oct 2022 19:54:13 +0530 Subject: [PATCH 1/4] Digital-Clock --- Digital-Clock/Sourodip20kar.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Digital-Clock/Sourodip20kar.md diff --git a/Digital-Clock/Sourodip20kar.md b/Digital-Clock/Sourodip20kar.md new file mode 100644 index 0000000..35140e0 --- /dev/null +++ b/Digital-Clock/Sourodip20kar.md @@ -0,0 +1,24 @@ +# 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() + +``` + +![Screenshot 2022-10-04 195233](https://user-images.githubusercontent.com/104223444/193844936-aee558c0-6b43-4096-9b9c-cc3ef23a29ed.png) From a917ec89d33b53e6a8224be5db96f5078ea2f157 Mon Sep 17 00:00:00 2001 From: Sourodip Kar <104223444+Sourodip20kar@users.noreply.github.com> Date: Tue, 4 Oct 2022 23:15:52 +0530 Subject: [PATCH 2/4] Digital Clock --- Digital-Clock/Sourodip20kar.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Digital-Clock/Sourodip20kar.md b/Digital-Clock/Sourodip20kar.md index 35140e0..26efee5 100644 --- a/Digital-Clock/Sourodip20kar.md +++ b/Digital-Clock/Sourodip20kar.md @@ -22,3 +22,6 @@ top.mainloop() ``` ![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 From b46c7e01a4d62ca55974795f15114a3eebec94a8 Mon Sep 17 00:00:00 2001 From: Sourodip Kar <104223444+Sourodip20kar@users.noreply.github.com> Date: Thu, 6 Oct 2022 00:37:50 +0530 Subject: [PATCH 3/4] Created Digital-Clock.py --- Digital-Clock/Digital-Clock.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Digital-Clock/Digital-Clock.py diff --git a/Digital-Clock/Digital-Clock.py b/Digital-Clock/Digital-Clock.py new file mode 100644 index 0000000..258c227 --- /dev/null +++ b/Digital-Clock/Digital-Clock.py @@ -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() From c68ba11d03828d127f08d38b27d9307567b37343 Mon Sep 17 00:00:00 2001 From: Sourodip Kar <104223444+Sourodip20kar@users.noreply.github.com> Date: Thu, 6 Oct 2022 00:41:13 +0530 Subject: [PATCH 4/4] Updated readme.md --- Digital-Clock/Sourodip20kar.md | 27 --------------------------- Digital-Clock/readme.md | 7 +++++++ 2 files changed, 7 insertions(+), 27 deletions(-) delete mode 100644 Digital-Clock/Sourodip20kar.md create mode 100644 Digital-Clock/readme.md diff --git a/Digital-Clock/Sourodip20kar.md b/Digital-Clock/Sourodip20kar.md deleted file mode 100644 index 26efee5..0000000 --- a/Digital-Clock/Sourodip20kar.md +++ /dev/null @@ -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() - -``` - -![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 diff --git a/Digital-Clock/readme.md b/Digital-Clock/readme.md new file mode 100644 index 0000000..8f90c42 --- /dev/null +++ b/Digital-Clock/readme.md @@ -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