Exemplo n.º 1
0
 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')
Exemplo n.º 2
0
 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')