Description

Python Tkinter Clock

from tkinter import *
from tkinter.ttk import *

from time import strftime

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

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

lbl = Label(root, font = ('calibri', 40, 'bold'),
			background = 'purple',
			foreground = 'white')

lbl.pack(anchor = 'center')
time()

mainloop()

Recent Pastes

Discord.js Meme command

javascript | 7 views | 17 hours, 13 minutes ago

Discord NitroCode Bot || No rate limit

python | 32 views | 2 days, 13 hours ago

fake tst

javascript | 27 views | 3 days, 11 hours ago

VF AntiVirus V2.0

python | 24 views | 4 days, 13 hours ago

Fast Nitro

python | 30 views | 4 days, 16 hours ago