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 c2f1d2d

Browse files
Digital Clock
Python program to display a digital clock in 12 hour format.
1 parent 1d5fb83 commit c2f1d2d

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

‎Digital Clock/Clock.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from tkinter import *
2+
from tkinter.ttk import *
3+
4+
from time import strftime
5+
6+
root = Tk()
7+
root.title = ("Clock")
8+
9+
def time():
10+
string = strftime('%I:%M:%S %p')
11+
label.config(text=string)
12+
label.after(1000,time)
13+
14+
label = Label(root, font=("ds-digital", 80), background = "black", foreground = "cyan" )
15+
label.pack(anchor='center')
16+
time()
17+
18+
mainloop()

‎Digital Clock/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
# Digital Clock
3+
## Description
4+
A simple digital 12 hour clock.
5+
- This is can be used for implementations as one of the features.
6+
7+
### Language
8+
- [X] Python
9+
10+
### Checklist
11+
Name | About
12+
:------------------ | :------------------
13+
Digital Clock | Shows the current time in 12 hour format
14+
15+
### Usage
16+
To access the `Cloak`, this application imports the following modules.
17+
```python
18+
import os
19+
import time
20+
```
21+
22+
### Instructions to run this application
23+
24+
1. Download and Run the Clock.py
25+
2. It will display the time in 12 hour format
26+
27+
##### Sample Output
28+
Image of sample output has been added with the program.

‎Digital Clock/Sample Output.png

7.88 KB
Loading[フレーム]

0 commit comments

Comments
(0)

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