From f67515c67453495093c2092761d58d9271bfccff Mon Sep 17 00:00:00 2001 From: nirvn Date: Mon, 5 Oct 2020 15:52:01 +0700 Subject: [PATCH] [console] Additional tweaks to looks of console input/output area --- python/console/console_output.py | 9 ++++++--- python/console/console_sci.py | 5 +++-- 2 files changed, 9 insertions(+), 5 deletions(-) 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():