Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[console] Additional tweaks to looks of console input/output area
  • Loading branch information
nirvn committed Oct 5, 2020
1 parent f76deec commit f67515c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 6 additions & 3 deletions python/console/console_output.py
Expand Up @@ -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)

Expand Down Expand Up @@ -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('')
Expand Down
5 changes: 3 additions & 2 deletions python/console/console_sci.py
Expand Up @@ -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():
Expand Down

0 comments on commit f67515c

Please sign in to comment.