Created
May 30, 2021 08:44
-
-
Save Tanmaybhujade/0f76fd902881b7ee7474d0a6553efcf6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
help me in this