Skip to content

Commit

Permalink
Digital cock with GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallLion authored Jul 24, 2021
1 parent 3a00e00 commit 63b8eff
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions digital_clock_GUI.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from tkinter import Label, Tk
import time
app_window = Tk()
app_window.title("Digital Clock")
app_window.geometry("420x150")
app_window.resizable(1,1)

text_font= ("Boulder", 68, 'bold')
background = "#f2e750"
foreground= "#363529"
border_width = 25

label = Label(app_window, font=text_font, bg=background, fg=foreground, bd=border_width)
label.grid(row=0, column=1)

def digital_clock():
time_live = time.strftime("%H:%M:%S")
label.config(text=time_live)
label.after(200, digital_clock)

digital_clock()
app_window.mainloop()

# Coded with 💙 by Mr. Unity Buddy

0 comments on commit 63b8eff

Please sign in to comment.