Beispiel #1
0
 def __init__(self):
     super().__init__()
     # 环境配置
     self.srcpath = pathm.GetUiPath()
     self.logpath = pathm.GetLogPath()
     self.Timing = False
     self.setupUI()
Beispiel #2
0
 def ManmalTrack(self):
     # 读取并打开单个文件,所以tuple索引为0。
     if False:
         openfile_name = QFileDialog.getOpenFileName(
             self, '打开日志', '', 'Text Files (*.txt)')
         if openfile_name[0].strip() != "":
             startNotepad = "notepad " + openfile_name[0].strip()
             try:
                 os.system(openfile_name[0].strip())
             except:
                 pass
     # 打开文件路径
     else:
         logpath = './'
         try:
             logpath = pathm.GetLogPath()
         except:
             curPath = os.path.abspath(__file__)
             logpath = os.path.dirname(curPath)
         os.system('start explorer.exe %s' % (logpath))