[console] Additional tweaks to looks of console input/output area

This commit is contained in:
nirvn 2020-10-05 15:52:01 +07:00 committed by Mathieu Pellerin
parent f76deec378
commit f67515c674
2 changed files with 9 additions and 5 deletions

View File

@ -119,9 +119,6 @@ class ShellOutputScintilla(QgsPythonConsoleBase):
self.insertInitText() self.insertInitText()
self.refreshSettingsOutput() self.refreshSettingsOutput()
self.setReadOnly(True)
self.setCaretWidth(0) # NO (blinking) caret in the output
self.setMinimumHeight(120) self.setMinimumHeight(120)
@ -156,6 +153,12 @@ class ShellOutputScintilla(QgsPythonConsoleBase):
def refreshSettingsOutput(self): def refreshSettingsOutput(self):
# Set Python lexer # Set Python lexer
self.setLexers() self.setLexers()
self.setReadOnly(True)
self.setCaretWidth(0) # NO (blinking) caret in the output
self.setFoldingVisible(False)
self.setEdgeMode(QsciScintilla.EdgeNone)
def clearConsole(self): def clearConsole(self):
self.setText('') self.setText('')

View File

@ -142,8 +142,9 @@ class ShellScintilla(QgsPythonConsoleBase, code.InteractiveInterpreter):
self.setMarginLineNumbers(1, True) self.setMarginLineNumbers(1, True)
self.setMarginWidth(1, "00000") self.setMarginWidth(1, "00000")
self.setMarginType(1, 5) # TextMarginRightJustified=5 self.setMarginType(1, 5) # TextMarginRightJustified=5
self.setFoldMarginColors(self.color(QgsCodeEditor.ColorRole.Background), self.setMarginsBackgroundColor(self.color(QgsCodeEditor.ColorRole.Background))
self.color(QgsCodeEditor.ColorRole.Background)) self.setFoldingVisible(False)
self.setEdgeMode(QsciScintilla.EdgeNone)
def showHistory(self): def showHistory(self):
if not self.historyDlg.isVisible(): if not self.historyDlg.isVisible():