コード例 #1
0
ファイル: sudoku_subs.py プロジェクト: raysmith619/sudoku
def pgm_exit():
    SlTrace.lg("Quitting Sudoku Playing")
    # Trace and Log files save by SlTrace onexit
    ###SlTrace.lg("Properties File: %s"% SlTrace.getPropPath())
    ###SlTrace.lg("Log File: %s"% SlTrace.getLogPath())
    gb.res_group.destroy_all()
    gb.Display_mw.destroy()
    gb.Display_mw = None
    gb.running = False
    SlTrace.onexit()        # Force saving
    sys.exit(0)
コード例 #2
0
 def user_exit():
     print("user_exit")
     print("Calling SlTrace.onexit()")
     SlTrace.onexit()
     exit()
コード例 #3
0
 def chat_window_exit():  # Default exit function
     print("chat_window_exit")
     ChatWindow.mgr.destroy()
     SlTrace.onexit()
     exit()