diff --git a/python/console/console_output.py b/python/console/console_output.py index 77fc439f67b..78f3f32e798 100644 --- a/python/console/console_output.py +++ b/python/console/console_output.py @@ -119,9 +119,6 @@ class ShellOutputScintilla(QgsPythonConsoleBase): self.insertInitText() self.refreshSettingsOutput() - self.setReadOnly(True) - - self.setCaretWidth(0) # NO (blinking) caret in the output self.setMinimumHeight(120) @@ -156,6 +153,12 @@ class ShellOutputScintilla(QgsPythonConsoleBase): def refreshSettingsOutput(self): # Set Python lexer self.setLexers() + self.setReadOnly(True) + + self.setCaretWidth(0) # NO (blinking) caret in the output + + self.setFoldingVisible(False) + self.setEdgeMode(QsciScintilla.EdgeNone) def clearConsole(self): self.setText('') diff --git a/python/console/console_sci.py b/python/console/console_sci.py index 04421b35995..46b08219eda 100644 --- a/python/console/console_sci.py +++ b/python/console/console_sci.py @@ -142,8 +142,9 @@ class ShellScintilla(QgsPythonConsoleBase, code.InteractiveInterpreter): self.setMarginLineNumbers(1, True) self.setMarginWidth(1, "00000") self.setMarginType(1, 5) # TextMarginRightJustified=5 - self.setFoldMarginColors(self.color(QgsCodeEditor.ColorRole.Background), - self.color(QgsCodeEditor.ColorRole.Background)) + self.setMarginsBackgroundColor(self.color(QgsCodeEditor.ColorRole.Background)) + self.setFoldingVisible(False) + self.setEdgeMode(QsciScintilla.EdgeNone) def showHistory(self): if not self.historyDlg.isVisible():