MCPcopy Create free account
hub / github.com/PyQt5/PyQt / __init__

Method __init__

QTreeView/TestSerializeModel.py:28–31  ·  view source on GitHub ↗
(self, pattern, color)

Source from the content-addressed store, hash-verified

26
27class HighlightingRule:
28 def __init__(self, pattern, color):
29 self.pattern = QRegExp(pattern)
30 self.format = QTextCharFormat()
31 self.format.setForeground(color)
32
33
34class JsonHighlighter(QSyntaxHighlighter):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected