Beispiel #1
0
 def defaultPaper(self, style):
     # Here we change the color of the background.
     # We want that colorize all the background of the line.
     # This is done by using the following method defaultEolFill() .
     if style == self.Comment or style == self.Comment_End or style == self.Comment_Start:
         return QColor('#FFEECC')
     return QsciLexerCustom.defaultPaper(self, style)
 def defaultPaper(self, style):
     # Here we change the color of the background.
     # We want to colorize all the background of the line.
     # This is done by using the following method defaultEolFill() .
     if style in self.__comment:
         return QColor('#FFEECC')
     return QsciLexerCustom.defaultPaper(self, style)
Beispiel #3
0
 def defaultPaper(self, style):
     # Here we change the color of the background.
     # We want that colorize all the background of the line.
     # This is done by using the following method defaultEolFill() .
     if style == self.Comment or style == self.Comment_End or style == self.Comment_Start:
         return QColor("#FFEECC")
     return QsciLexerCustom.defaultPaper(self, style)
Beispiel #4
0
    def defaultPaper(self, style):
# Here we change the color of the background.
# We want to colorize all the background of the line.
# This is done by using the following method defaultEolFill() .
        if style == self.SecundLevelTitle:
            return QColor('#FFFF99')
        elif style == self.Digits:
            return QColor('#FFCC66')

        return QsciLexerCustom.defaultPaper(self, style)
Beispiel #5
0
    def defaultPaper(self, style):
        # Here we change the color of the background.
        # We want to colorize all the background of the line.
        # This is done by using the following method defaultEolFill() .
        if style == self.SecundLevelTitle:
            return QColor('#FFFF99')
        elif style == self.Digits:
            return QColor('#FFCC66')

        return QsciLexerCustom.defaultPaper(self, style)
Beispiel #6
0
 def defaultPaper(self, ix):
     for i in self.styles:
         if i.style() == ix:
             return i.paper()
     return QsciLexerCustom.defaultPaper(self, ix)
Beispiel #7
0
 def defaultPaper(self, style):
     if style == self.Section:
         return QColor('#FFEECC')
     return QsciLexerCustom.defaultPaper(self, style)
Beispiel #8
0
 def defaultPaper(self, style):
     if style == self.Section:
         return QColor('#FFEECC')
     return QsciLexerCustom.defaultPaper(self, style)