Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e8cffe5

Browse files
Digital Clock
0 parents commit e8cffe5

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

‎Digital clock.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import time
2+
from tkinter import *
3+
root = Tk()
4+
root.title("Digital Clock")
5+
root.geometry("250x100+0+0")
6+
root.resizable(0,0)
7+
8+
9+
def clack():
10+
text_input = time.strftime("%H:%M:%S")
11+
label.config(text=text_input)
12+
label.after(200, clack)
13+
14+
label = Label(root, font=("Arial", 30, 'bold'), bg="green", fg="powder blue", bd =30)
15+
label.grid(row =0, column=1)
16+
clack()
17+
18+
print('done')
19+
20+
21+
root.mainloop()

‎clock.png

9.56 KB
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /