def onShowCustomLogcat(self): if self.logcatFile != None and self.logcatFinish == True: pid = self.pidEdit.getText() if pid == '': pid = None tag = self.tagEdit.getText() tags = [] if tag != '': tags = tags + [tag] for i in range(len(self.moduleNames)): if self.moduleCbox.getSel(i): tags = tags + self.moduleTags[i] print tags if len(tags) != 0 or pid != None: filePath = util.joinFileSubName(self.logcatFile, 'cur') self.ar.filterLogcat(self.logcatFile, filePath, tags, pid) inst = misc.getInstance() inst.openFile(filePath, 'log')
def onShowLogcat(self, mid): if self.logcatFile != None and self.logcatFinish == True: filePath = util.joinFileSubName(self.logcatFile, self.moduleNames[mid]) self.ar.filterLogcat(self.logcatFile, filePath, self.moduleTags[mid]) inst = misc.getInstance() inst.openFile(filePath, 'log')