Esempio n. 1
0
def bind_key_and_return(key):
    env.bind_key(key, unit_to_bind)
    if hasattr(gui.last_card, "push_handlers"):
        gui.go_back_fast()
    else:
        gui.pop_handlers()
        gui.current_card = gui.last_card
        gui.last_card = None
        gui.next_card = None
Esempio n. 2
0
 def go_back():
     gui.pop_handlers()
     gui.current_card = gui.last_card
     gui.last_card = None
     gui.next_card = None