def win():
    "Add name to HST and return to menu."
    name = tkSimpleDialog.askstring(STR.VICT_TI, '\n'.join(STR.VICT_MS)) or STR.DEFAULT
    score = TMR.LIMIT - clock
    if score in HST:
        HST[score].insert(0, name)
    else:
        HST[score] = [name]
    loser = min(HST)
    if len(HST[loser]) > 1:
        del HST[loser][-1]
    else:
        del HST[loser]
    screen.after_cancel(blink_h)
    show_start()
Add name to HST and return to menu.
recipes/Python/510398_Kaos_Rain_MKv3/recipe-510398.py