QScintilla/Lexers/LexerPython.py

changeset 3730
dccee91e9d8a
parent 3656
441956d8fce5
child 4021
195a471c327b
equal deleted inserted replaced
3729:b6eda7d63e4c 3730:dccee91e9d8a
47 47
48 def initProperties(self): 48 def initProperties(self):
49 """ 49 """
50 Public slot to initialize the properties. 50 Public slot to initialize the properties.
51 """ 51 """
52 if Preferences.getEditor("PythonBadIndentation"): 52 self.setIndentationWarning(
53 self.setIndentationWarning(QsciLexerPython.Inconsistent) 53 Preferences.getEditor("PythonBadIndentation"))
54 else:
55 self.setIndentationWarning(QsciLexerPython.NoWarning)
56 self.setFoldComments(Preferences.getEditor("PythonFoldComment")) 54 self.setFoldComments(Preferences.getEditor("PythonFoldComment"))
57 self.setFoldQuotes(Preferences.getEditor("PythonFoldString")) 55 self.setFoldQuotes(Preferences.getEditor("PythonFoldString"))
58 if not Preferences.getEditor("PythonAutoIndent"): 56 if not Preferences.getEditor("PythonAutoIndent"):
59 self.setAutoIndentStyle(QsciScintilla.AiMaintain) 57 self.setAutoIndentStyle(QsciScintilla.AiMaintain)
60 try: 58 try:

eric ide

mercurial