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)
def user_exit(): print("user_exit") print("Calling SlTrace.onexit()") SlTrace.onexit() exit()
def chat_window_exit(): # Default exit function print("chat_window_exit") ChatWindow.mgr.destroy() SlTrace.onexit() exit()