import turtle
screen = turtle.Screen()
screen.setup(600, 120)
text_turtle = turtle.Turtle()
text_turtle.hideturtle()
text_turtle.speed(0)
stop = False
tick = 0
def update_time():
global tick
if tick < 1000 and not stop:
tick = tick + 1
text_turtle.clear()
text_turtle.write(tick, font=("Arial", 60, "normal"))
screen.ontimer(update_time, 10)
def handle_click(x, y):
global stop
if stop:
stop = False
else:
stop = True
update_time()
screen.onclick(handle_click)