Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Timer - Python Code Bank


Timer
Starts a timer from current time
                import Tkinter
import time

curtime = ''
clock = Tkinter.Label()
clock.pack()

def tick():
    global curtime
    newtime = time.strftime('%H:%M:%S')
    if newtime != curtime:
        curtime = newtime
        clock.config(text=curtime)
    clock.after(200, tick)

tick()
clock.mainloop()


            
Comments
Shai123's avatar
Shai123 11 years ago

<script>alert(1)</script>