def addLogMessage(self, text, level=None): index = self.count() color = log.getLevelColor(level) self.addItem(text, color, level) self.showItem(index, level >= self.level)
def updateView(self): for i in range(self.count()): ilevel = self.getItemData(i) self.showItem(i, ilevel >= self.level) self.setItemColor(i, log.getLevelColor(ilevel))
def updateView(self): for i in xrange(self.count()): ilevel = self.getItemData(i) self.showItem(i, ilevel >= self.level) self.setItemColor(i, log.getLevelColor(ilevel))
def addLogMessage(self, text, level = None): index = self.count() color = log.getLevelColor(level) self.addItem(text, color, level) self.showItem(index, level >= self.level)
def addLogMessage(self, text, level=None): color = log.getLevelColor(level)