49 else: |
49 else: |
50 self.setIndentationWarning(QsciLexerPython.NoWarning) |
50 self.setIndentationWarning(QsciLexerPython.NoWarning) |
51 self.setFoldComments(Preferences.getEditor("PythonFoldComment")) |
51 self.setFoldComments(Preferences.getEditor("PythonFoldComment")) |
52 self.setFoldQuotes(Preferences.getEditor("PythonFoldString")) |
52 self.setFoldQuotes(Preferences.getEditor("PythonFoldString")) |
53 if not Preferences.getEditor("PythonAutoIndent"): |
53 if not Preferences.getEditor("PythonAutoIndent"): |
54 self.setAutoIndentStyle(QsciScintilla.AiMaintain) |
54 self.setAutoIndentStyle(QsciScintilla.AiMaintain) |
55 try: |
55 try: |
56 self.setV2UnicodeAllowed(Preferences.getEditor("PythonAllowV2Unicode")) |
56 self.setV2UnicodeAllowed(Preferences.getEditor("PythonAllowV2Unicode")) |
57 self.setV3BinaryOctalAllowed(Preferences.getEditor("PythonAllowV3Binary")) |
57 self.setV3BinaryOctalAllowed(Preferences.getEditor("PythonAllowV3Binary")) |
58 self.setV3BytesAllowed(Preferences.getEditor("PythonAllowV3Bytes")) |
58 self.setV3BytesAllowed(Preferences.getEditor("PythonAllowV3Bytes")) |
59 except AttributeError: |
59 except AttributeError: |