예제 #1
0
    def defaultColor(self, style):
        """QsciLexerCustom method implmentation. See QScintlla docs
        """
        pygStyle = self._getPygStyle(style)
        if not pygStyle or not pygStyle['color']:
            return QsciLexerCustom.defaultColor(self, style)

        return self._toQColor(pygStyle['color'])
예제 #2
0
 def defaultColor(self, style):
     if style == self.Default:
         return QtGui.QColor("#ffffff")
     elif style == self.ErrorInfo:
         return QtGui.QColor("#E6DB74")
     elif style == self.OutputInfo:
         return QtGui.QColor("#FFFFFF")
     elif style == self.ExitInfo:
         return QtGui.QColor("#3DA3EF")
     elif style == self.Start:
         return QtGui.QColor("#7FE22A")
     return QsciLexerCustom.defaultColor(self, style)
예제 #3
0
    def defaultColor(self, style):
#        print 'defaultColor', style
        if style == self.Default:
            return QColor('#000000')
        elif style in self.__comment:
            return QColor('#E5E5E5')
        elif style == self.Digits:
            print 'digit'
            return QColor('#A52A2A')
        elif style == self.from_and_for:
            return QColor('#0000FF')
        return QsciLexerCustom.defaultColor(self, style)
예제 #4
0
 def defaultColor(self, style):
     if style == self.Default:
         return QColor('#000000')
     elif style == self.FirstLevelTitle:
         return QColor('#FF0000')
     elif style == self.SecundLevelTitle:
         return QColor('#0000FF')
     elif style == self.Green:
         return QColor('#00FF00')
     elif style == self.Digits:
         return QColor('#AAAAAA')
     return QsciLexerCustom.defaultColor(self, style)
예제 #5
0
 def defaultColor(self, style):
     if style == self.Default:
         return QtGui.QColor('#ffffff')
     elif style == self.ErrorInfo:
         return QtGui.QColor('#E6DB74')
     elif style == self.OutputInfo:
         return QtGui.QColor('#FFFFFF')
     elif style == self.ExitInfo:
         return QtGui.QColor('#3DA3EF')
     elif style == self.Start:
         return QtGui.QColor('#7FE22A')
     return QsciLexerCustom.defaultColor(self, style)
예제 #6
0
 def defaultColor(self, style):
     if style == self.Default:
         return QtGui.QColor('#ffffff')
     elif style == self.ErrorInfo:
         return QtGui.QColor('#E6DB74')
     elif style == self.OutputInfo:
         return QtGui.QColor('#FFFFFF')
     elif style == self.ExitInfo:
         return QtGui.QColor('#3DA3EF')
     elif style == self.Start:
         return QtGui.QColor('#7FE22A')
     return QsciLexerCustom.defaultColor(self, style)
예제 #7
0
파일: customLexer3.py 프로젝트: pingf/toys
 def defaultColor(self, style):
     if style == self.Default:
         return QColor('#000000')
     elif style == self.FirstLevelTitle:
         return QColor('#FF0000')
     elif style == self.SecundLevelTitle:
         return QColor('#0000FF')
     elif style == self.Green:
         return QColor('#00FF00')
     elif style == self.Digits:
         return QColor('#AAAAAA')
     return QsciLexerCustom.defaultColor(self, style)
예제 #8
0
파일: LexerR.py 프로젝트: Geoneer/QGIS
    def defaultColor(self, style):
        if style == self.Default:
            return QColor("#2e3436")
        elif style == self.Keyword:
            return QColor("#204a87")
        elif style == self.Comment:
            return QColor("#c00")
        elif style == self.Number:
            return QColor("#4e9a06")
        elif style == self.String:
            return QColor("#ce5c00")

        return QsciLexerCustom.defaultColor(self, style)
예제 #9
0
    def defaultColor(self, style):
        if style == self.Default:
            return QColor('#2e3436')
        elif style == self.Keyword:
            return QColor('#204a87')
        elif style == self.Comment:
            return QColor('#c00')
        elif style == self.Number:
            return QColor('#4e9a06')
        elif style == self.String:
            return QColor('#ce5c00')

        return QsciLexerCustom.defaultColor(self, style)
예제 #10
0
 def defaultColor(self, style):
     if style == self.Default:
         return QColor('#000000')
     elif style == self.Comment:
         return QColor('#A0A0A0')
     elif style == self.Section:
         return QColor('#CC6600')
     elif style == self.Key:
         return QColor('#0000CC')
     elif style == self.Assignment:
         return QColor('#CC0000')
     elif style == self.Value:
         return QColor('#00CC00')
     return QsciLexerCustom.defaultColor(self, style)
예제 #11
0
 def defaultColor(self, style):
     if style == self.Default:
         return QColor('#000000')
     elif style == self.Comment:
         return QColor('#A0A0A0')
     elif style == self.Section:
         return QColor('#CC6600')
     elif style == self.Key:
         return QColor('#0000CC')
     elif style == self.Assignment:
         return QColor('#CC0000')
     elif style == self.Value:
         return QColor('#00CC00')
     return QsciLexerCustom.defaultColor(self, style)
예제 #12
0
 def defaultColor(self, style):
     if style == self.Default:
         return QColor("#000000")
     elif style == self.Comment or style == self.Comment_End or style == self.Comment_Start:
         return QColor("#A0A0A0")
     return QsciLexerCustom.defaultColor(self, style)
예제 #13
0
 def defaultColor(self, style):
     if style == self.Default:
         return QColor('#000000')
     elif style in self.__comment:
         return QColor('#A0A0A0')
     return QsciLexerCustom.defaultColor(self, style)
예제 #14
0
 def defaultColor(self, ix):
     for i in self.styles:
         if i.style() == ix:
             return i.color()
     return QsciLexerCustom.defaultColor(self, ix)
예제 #15
0
 def defaultColor(self, style):
     if style == self.Default:
         return QColor('#000000')
     elif style == self.Comment or style == self.Comment_End or style == self.Comment_Start:
         return QColor('#A0A0A0')
     return QsciLexerCustom.defaultColor(self, style)
예제 #16
0
 def defaultColor(self, style):
     if style == self.Default:
         return QColor('#000000')
     elif style == self.Comment:
         return QColor('#228B22')
     return QsciLexerCustom.defaultColor(self, style)
예제 #17
0
 def defaultColor(self, style):
     if style == self.Default:
         return QColor('#000000')
     elif style == self.Function:
         return QColor('#C0C0C0')
     return QsciLexerCustom.defaultColor(self, style)