本文整理汇总了Python中PyQt4.Qsci.QsciLexerCustom.defaultPaper方法的典型用法代码示例。如果您正苦于以下问题:Python QsciLexerCustom.defaultPaper方法的具体用法?Python QsciLexerCustom.defaultPaper怎么用?Python QsciLexerCustom.defaultPaper使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt4.Qsci.QsciLexerCustom
的用法示例。
在下文中一共展示了QsciLexerCustom.defaultPaper方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: defaultPaper
# 需要导入模块: from PyQt4.Qsci import QsciLexerCustom [as 别名]
# 或者: from PyQt4.Qsci.QsciLexerCustom import defaultPaper [as 别名]
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)
示例2: defaultPaper
# 需要导入模块: from PyQt4.Qsci import QsciLexerCustom [as 别名]
# 或者: from PyQt4.Qsci.QsciLexerCustom import defaultPaper [as 别名]
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)
示例3: defaultPaper
# 需要导入模块: from PyQt4.Qsci import QsciLexerCustom [as 别名]
# 或者: from PyQt4.Qsci.QsciLexerCustom import defaultPaper [as 别名]
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)
示例4: defaultPaper
# 需要导入模块: from PyQt4.Qsci import QsciLexerCustom [as 别名]
# 或者: from PyQt4.Qsci.QsciLexerCustom import defaultPaper [as 别名]
def defaultPaper(self, ix):
for i in self.styles:
if i.style() == ix:
return i.paper()
return QsciLexerCustom.defaultPaper(self, ix)
示例5: defaultPaper
# 需要导入模块: from PyQt4.Qsci import QsciLexerCustom [as 别名]
# 或者: from PyQt4.Qsci.QsciLexerCustom import defaultPaper [as 别名]
def defaultPaper(self, style):
if style == self.Section:
return QColor('#FFEECC')
return QsciLexerCustom.defaultPaper(self, style)