Esempio n. 1
0
 def defaultColor(self, ix):
     for i in self.styles:
         if i.style() == ix:
             return i.color()
     return QsciLexerPython.defaultColor(self, ix)
Esempio n. 2
0
 def defaultColor(self, style):
     '''Returns the foreground colour of the text for style number style'''
     color = self.lexer.get_default_color(style, self.description(style))
     if color != 'not':
         return color
     return QsciLexerPython.defaultColor(self, style)