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: |