Cleanup ExamplesApp
This commit is contained in:
parent
e5f123deb2
commit
5d33ccff8d
@ -215,9 +215,9 @@ class PythonHighlighter(QSyntaxHighlighter):
|
|||||||
# Python operators
|
# Python operators
|
||||||
operators = [
|
operators = [
|
||||||
r'=',
|
r'=',
|
||||||
# # Comparison
|
# Comparison
|
||||||
r'==', r'!=', r'<', r'<=', r'>', r'>=',
|
r'==', r'!=', r'<', r'<=', r'>', r'>=',
|
||||||
# # Arithmetic
|
# Arithmetic
|
||||||
r'\+', r"-", r'\*', r'/', r'//', r'%', r'\*\*',
|
r'\+', r"-", r'\*', r'/', r'//', r'%', r'\*\*',
|
||||||
# In-place
|
# In-place
|
||||||
r'\+=', r'-=', r'\*=', r'/=', r'\%=',
|
r'\+=', r'-=', r'\*=', r'/=', r'\%=',
|
||||||
@ -234,8 +234,6 @@ class PythonHighlighter(QSyntaxHighlighter):
|
|||||||
QSyntaxHighlighter.__init__(self, document)
|
QSyntaxHighlighter.__init__(self, document)
|
||||||
|
|
||||||
# Multi-line strings (expression, flag, style)
|
# 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_single = (QRegularExpression("'''"), 1, 'string2')
|
||||||
self.tri_double = (QRegularExpression('"""'), 2, 'string2')
|
self.tri_double = (QRegularExpression('"""'), 2, 'string2')
|
||||||
|
|
||||||
@ -349,7 +347,6 @@ class PythonHighlighter(QSyntaxHighlighter):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ExampleLoader(QtGui.QMainWindow):
|
class ExampleLoader(QtGui.QMainWindow):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
QtGui.QMainWindow.__init__(self)
|
QtGui.QMainWindow.__init__(self)
|
||||||
|
Loading…
Reference in New Issue
Block a user