OpenPisco.QtApp.XmlHighlighting module#

class OpenPisco.QtApp.XmlHighlighting.PythonHighlighter(document)[source]#

Bases: QSyntaxHighlighter

Syntax highlighter for the Python language.

braces = ['\\{', '\\}', '\\(', '\\)', '\\[', '\\]']#
highlightBlock(text)[source]#

Apply syntax highlighting to the given block of text.

keywords = ['data', 'Zones', 'Grids', 'LevelSets', 'PhysicalProblems', 'OptimProblems', 'TopologicalOptimizations', 'Outputs', 'Actions']#
match_multiline(text, delimiterStart, delimiterEnd, in_state, style)[source]#
operators = ['=', '==', '!=', '<', '<=', '>', '>=', '\\+', '-', '\\*', '/', '//', '\\%', '\\*\\*', '\\+=', '-=', '\\*=', '/=', '\\%=', '\\^', '\\|', '\\&', '\\~', '>>', '<<']#
staticMetaObject = <PySide2.QtCore.QMetaObject object>#
OpenPisco.QtApp.XmlHighlighting.format(color, style='')[source]#

Return a QTextCharFormat with the given attributes.