From 5d33ccff8dd6a2fc0b0cbd63dadcba026f034a3e Mon Sep 17 00:00:00 2001 From: Ogi Moore Date: Tue, 22 Dec 2020 22:10:59 -0800 Subject: [PATCH] Cleanup ExamplesApp --- examples/ExampleApp.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/ExampleApp.py b/examples/ExampleApp.py index d9f916a2..ef280979 100644 --- a/examples/ExampleApp.py +++ b/examples/ExampleApp.py @@ -215,9 +215,9 @@ class PythonHighlighter(QSyntaxHighlighter): # Python operators operators = [ r'=', - # # Comparison + # Comparison r'==', r'!=', r'<', r'<=', r'>', r'>=', - # # Arithmetic + # Arithmetic r'\+', r"-", r'\*', r'/', r'//', r'%', r'\*\*', # In-place r'\+=', r'-=', r'\*=', r'/=', r'\%=', @@ -234,8 +234,6 @@ class PythonHighlighter(QSyntaxHighlighter): QSyntaxHighlighter.__init__(self, document) # Multi-line strings (expression, flag, style) - # FIXME: The triple-quotes in these two lines will mess up the - # syntax highlighting from this point onward self.tri_single = (QRegularExpression("'''"), 1, 'string2') self.tri_double = (QRegularExpression('"""'), 2, 'string2') @@ -349,7 +347,6 @@ class PythonHighlighter(QSyntaxHighlighter): - class ExampleLoader(QtGui.QMainWindow): def __init__(self): QtGui.QMainWindow.__init__(self)