Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- from time import *
- def update():
- time_string = strftime("%I:%M:%S %p")
- time_label.config(text=time_string)
- day_string = strftime("%A")
- day_label.config(text=day_string)
- window.after(1000,update)
- window = Tk()
- time_label = Label(window,font=("ds-digital",50),fg="#00FF00",bg="black")
- time_label.pack()
- day_label = Label(window,font=("Ink Free",25))
- day_label.pack()
- update()
- window.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement