mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
[console] Additional tweaks to looks of console input/output area
This commit is contained in:
parent
f76deec378
commit
f67515c674
@ -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('')
|
||||
|
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user