mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -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.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('')
|
||||||
|
@ -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():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user