コード例 #1
0
ファイル: __main__.py プロジェクト: japonophile/make-snake
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()
コード例 #2
0
def exit():
    graphics.exit()
コード例 #3
0
ファイル: __main__.py プロジェクト: pdinsky/make-snake
def exit():
    """Attempts to tidy up the graphics.
    Finally it calls sys.exit(), since sys is already imported
    """
    graphics.exit()
    sys.exit()
コード例 #4
0
def exit():
    graphics.exit()
    print 'Come back soon!'
コード例 #5
0
ファイル: __main__.py プロジェクト: KanoComputing/make-snake
def exit():
    """Attempts to tidy up the graphics.
    Finally it calls sys.exit(), since sys is already imported
    """
    graphics.exit()
    sys.exit()
コード例 #6
0
def exit():
    graphics.exit()
    print 'Come back soon!'
コード例 #7
0
def exit():
    graphics.exit()