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 LogFile(self): print("Display Log File") abs_logName = SlTrace.getLogPath() SlTrace.lg("Log file %s" % abs_logName) ###osCommandString = "notepad.exe %s" % abs_propName ###os.system(osCommandString) import subprocess as sp programName = "notepad.exe" sp.Popen([programName, abs_logName])
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)