コード例 #1
0
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)
コード例 #2
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])
コード例 #3
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
コード例 #4
0
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)
コード例 #5
0
ファイル: srtest.py プロジェクト: raysmith619/race_track
def pgm_exit():
    SlTrace.lg("Properties File: %s"% SlTrace.getPropPath())
    SlTrace.lg("Log File: %s"% SlTrace.getLogPath())
    sys.exit(0)