def pgm_exit(): ActiveCheck.clear_active() # Disable activities if rF is not None: rF.end_file() quit() SlTrace.lg("Properties File: %s"% SlTrace.getPropPath()) SlTrace.lg("Log File: %s"% SlTrace.getLogPath()) sys.exit(0)
def delete_window(self): """ Handle window deletion """ if self.play_control is not None: self.play_control.close_score_window() else: self.destroy() quit() SlTrace.lg("Properties File: %s" % SlTrace.getPropPath()) SlTrace.lg("Log File: %s" % SlTrace.getLogPath()) sys.exit(0) self.play_control = None
def pgm_exit(): ###ActiveCheck.clear_active() # Disable activities quit() SlTrace.lg("Properties File: %s" % SlTrace.getPropPath()) SlTrace.lg("Log File: %s" % SlTrace.getLogPath()) sys.exit(0)
def pgm_exit(): SlTrace.lg("Properties File: %s"% SlTrace.getPropPath()) SlTrace.lg("Log File: %s"% SlTrace.getLogPath()) sys.exit(0)
""" lines1 = open(file1).readlines() lines2 = open(file2).readlines() for line in difflib.unified_diff(lines1, lines2, fromfile='file1', tofile='file2', lineterm='\n', n=0): for prefix in ('---', '+++', '@@'): if line.startswith(prefix): break else: if req is not None and line.find(req) >= 0: print(line, end="") player_control = PlayerControl(title="testing") # Testing prop_file_beg = SlTrace.getPropPath() ppS = PlayerProps(player_control) ppS.push_player_info() ppS.player_control.add_new_player() ppS.push_player_info() ppS.player_control.add_new_player() ppS.push_player_info() ppS.player_control.add_new_player() ppS.save_player_info() SlTrace.save_propfile() prop_file_new = SlTrace.getPropPathSaved() diff(prop_file_beg, prop_file_new, ".name") SlTrace.lg("End of Test")