Skip to content
Permalink
Browse files

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

  • Loading branch information
nirvn committed Oct 5, 2020
1 parent f76deec commit f67515c67453495093c2092761d58d9271bfccff
Showing with 9 additions and 5 deletions.
  1. +6 −3 python/console/console_output.py
  2. +3 −2 python/console/console_sci.py
@@ -119,9 +119,6 @@ def __init__(self, parent=None):

self.insertInitText()
self.refreshSettingsOutput()
self.setReadOnly(True)

self.setCaretWidth(0) # NO (blinking) caret in the output

self.setMinimumHeight(120)

@@ -156,6 +153,12 @@ def insertInitText(self):
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 @@ def refreshSettingsShell(self):
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():

0 comments on commit f67515c

Please sign in to comment.
You can’t perform that action at this time.