Skip to content

Instantly share code, notes, and snippets.

@Tanmaybhujade
Created May 30, 2021 08:44
Show Gist options
  • Save Tanmaybhujade/0f76fd902881b7ee7474d0a6553efcf6 to your computer and use it in GitHub Desktop.
Save Tanmaybhujade/0f76fd902881b7ee7474d0a6553efcf6 to your computer and use it in GitHub Desktop.
from tkinter import *
from tkinter .ttk import *
from time import strftime
root = Tk()
root.title("clock")
def time():
string = str('%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()
@Tanmaybhujade
Copy link
Author

help me in this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment