def update_clock():
    "Update the clock on the screen."
    global clock_h, clock
    screen.delete('timer')
    clock += 1
    screen.create_text(clock_xy, text=f_time(TMR.LIMIT - clock), tag='timer')
    if TMR.LIMIT - clock:
        clock_h = screen.after(int((start + clock + 1 - time.clock()) * 1000), update_clock)
    else:
        lose(True)
Update the clock on the screen.
recipes/Python/510398_Kaos_Rain_MKv3/recipe-510398.py