Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Digital Clock/Clock.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from tkinter import *
from tkinter.ttk import *

from time import strftime

root = Tk()
root.title = ("Clock")

def time():
string = strftime('%I:%M:%S %p')
label.config(text=string)
label.after(1000,time)

label = Label(root, font=("ds-digital", 80), background = "black", foreground = "cyan" )
label.pack(anchor='center')
time()

mainloop()
28 changes: 28 additions & 0 deletions Digital Clock/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

# Digital Clock
## Description
A simple digital 12 hour clock.
- This is can be used for implementations as one of the features.

### Language
- [X] Python

### Checklist
Name | About
:------------------ | :------------------
Digital Clock | Shows the current time in 12 hour format

### Usage
To access the `Cloak`, this application imports the following modules.
```python
import os
import time
```

### Instructions to run this application

1. Download and Run the Clock.py
2. It will display the time in 12 hour format

##### Sample Output
Image of sample output has been added with the program.
Binary file added Digital Clock/Sample Output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.