def update_frame():
    "Draw the contents of the screen."
    global frame_h, frame
    screen.delete('ball')
    for num, ball in enumerate(balls):
        x1 = ball.pos.x - ball.rad
        y1 = ball.pos.y - ball.rad
        x2 = ball.pos.x + ball.rad
        y2 = ball.pos.y + ball.rad
        screen.create_oval(x1, y1, x2, y2, fill=CLR.CYCLE[ball.type], tag=(num, 'ball'))
    frame += 1
    frame_h = screen.after(int((start + frame / TMR.S_FPS - time.clock()) * 1000), update_frame)
Draw the contents of the screen.
recipes/Python/510398_Kaos_Rain_MKv3/recipe-510398.py