def lose(real=False):
    "End the session and get input."
    restart = tkMessageBox.askquestion(STR.LOSE_TI, STR.LOSE_MS) == 'yes'
    if real:
        screen.after_cancel(world_h)
        screen.after_cancel(frame_h)
    else:
        screen.after_cancel(blink_h)
    if restart:
        start_session(None)
    else:
        show_start()
End the session and get input.
recipes/Python/510398_Kaos_Rain_MKv3/recipe-510398.py