コード例 #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)
コード例 #2
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 in self.__comment:
         return QColor('#FFEECC')
     return QsciLexerCustom.defaultPaper(self, style)
コード例 #3
0
ファイル: lexer_test.py プロジェクト: averrin/demesne_old
 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)
コード例 #4
0
ファイル: customLexer3.py プロジェクト: pingf/toys
    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)
コード例 #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)
コード例 #6
0
ファイル: lexersquirrel.py プロジェクト: dreadpiratepj/Sabel
 def defaultPaper(self, ix):
     for i in self.styles:
         if i.style() == ix:
             return i.paper()
     return QsciLexerCustom.defaultPaper(self, ix)
コード例 #7
0
ファイル: lexer2.py プロジェクト: jvb/infobiotics-dashboard
 def defaultPaper(self, style):
     if style == self.Section:
         return QColor('#FFEECC')
     return QsciLexerCustom.defaultPaper(self, style)
コード例 #8
0
 def defaultPaper(self, style):
     if style == self.Section:
         return QColor('#FFEECC')
     return QsciLexerCustom.defaultPaper(self, style)