Ejemplo n.º 1
0
def exit(save_state=True):
    """Attempts to tidy up the graphics, and then save the app state.
    Finally it calls sys.exit(), since sys is already imported
    """
    try:
        graphics.exit()
    except:
        pass
    if save_state:
        gs.save_state()
    sys.exit()
Ejemplo n.º 2
0
def exit():
    graphics.exit()
Ejemplo n.º 3
0
def exit():
    """Attempts to tidy up the graphics.
    Finally it calls sys.exit(), since sys is already imported
    """
    graphics.exit()
    sys.exit()
Ejemplo n.º 4
0
def exit():
    graphics.exit()
    print 'Come back soon!'
Ejemplo n.º 5
0
def exit():
    """Attempts to tidy up the graphics.
    Finally it calls sys.exit(), since sys is already imported
    """
    graphics.exit()
    sys.exit()
Ejemplo n.º 6
0
def exit():
    graphics.exit()
    print 'Come back soon!'
Ejemplo n.º 7
0
def exit():
    graphics.exit()