Skip to content
Browse files

QgsPythonConsoleBase should use the standard QgsCodeEditorPython

class as a base class

Actually it should be completely folded into QgsCodeEditorPython
so that we have a single definitive Python code editor widget, but
this is a first step toward that...
  • Loading branch information
nyalldawson committed Oct 3, 2020
1 parent 0580e9e commit 89ace9aecac99119b72240540f97dfd7bacce3f7
Showing with 4 additions and 3 deletions.
  1. +4 −3 python/console/
@@ -21,12 +21,13 @@

from qgis.PyQt.QtCore import Qt, QUrl
from qgis.PyQt.QtGui import QColor, QFontDatabase, QDesktopServices
from qgis.PyQt.Qsci import QsciScintilla, QsciLexerPython, QsciAPIs
from qgis.PyQt.Qsci import QsciLexerPython, QsciAPIs
from qgis.core import QgsApplication, Qgis
from qgis.gui import QgsCodeEditorPython, QgsCodeEditor
import os

class QgsPythonConsoleBase(QsciScintilla):
class QgsPythonConsoleBase(QgsCodeEditorPython):

DEFAULT_COLOR = "#4d4d4c"
@@ -55,7 +56,7 @@ class QgsPythonConsoleBase(QsciScintilla):
ERROR_COLOR = "#e31a1c"

def __init__(self, parent=None):
super(QgsPythonConsoleBase, self).__init__(parent)

# Enable non-ascii chars

0 comments on commit 89ace9a

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