Class: QgsCodeEditorShell¶
A shell script code editor based on QScintilla2. Adds syntax highlighting and code autocompletion.
QgsCodeEditorShell
supports either Bash (Linux) or Batch
(Windows) code interpreters. By default the Batch interpreter will be
used on Windows platforms and the Bash interpreter on all other
platforms.
Added in version 3.32.

QgsCodeEditorShell containing a sample bash shell script¶

QgsCodeEditorShell containing a sample batch script¶
Class Hierarchy¶
Base classes¶
A text editor based on QScintilla2. |
|
- class qgis.gui.QgsCodeEditorShell[source]¶
Bases:
QgsCodeEditor
- __init__(parent: QWidget | None = None, mode: QgsCodeEditor.Mode = QgsCodeEditor.Mode.ScriptEditor, language: Qgis.ScriptLanguage = Qgis.ScriptLanguage.Unknown)
Constructor for QgsCodeEditorShell.
The
language
argument may beQgis
.ScriptLanguage.Unknown,Qgis
.ScriptLanguage.Bash orQgis
.ScriptLanguage.Batch. If thelanguage
isQgis
.ScriptLanguage.Unknown, then theQgis
.ScriptLanguage.Batch interpreter will be used on Windows platforms and theQgis
.ScriptLanguage.Bash interpreter on all other platforms.- Parameters:
parent (Optional[QWidget] = None)
mode (QgsCodeEditor.Mode = QgsCodeEditor.Mode.ScriptEditor)
language (Qgis.ScriptLanguage = Qgis.ScriptLanguage.Unknown)