Scintilla-based Python editor Adapted from this example and this addition
More...
Scintilla-based Python editor Adapted from this example and this addition
- See also
- QScintilla docs, API reference
◆ __init__()
def pycross.utils.synteditor.SynEditor.__init__ |
( |
|
self, |
|
|
|
parent = None , |
|
|
|
lexer = Qsci.QsciLexerPython() , |
|
|
|
source = None , |
|
|
|
autocomplete_source = None |
|
) |
| |
- Parameters
-
parent | QtWidgets.QWidget parent widget for the editor |
lexer | Qsci.QsciLexer lexer object responsible for parsing / highlighting |
source | str |None source code to place in the editor upon creation |
autocomplete_source | list |None list of variables & functions serving as the autocompletion source (see utils::utils::get_script_members()) |
◆ _config_autocomplete()
def pycross.utils.synteditor.SynEditor._config_autocomplete |
( |
|
self | ) |
|
|
private |
Configures various autocompletion settings.
◆ keyPressEvent()
def pycross.utils.synteditor.SynEditor.keyPressEvent |
( |
|
self, |
|
|
|
event |
|
) |
| |
Handle key presses to show autocomplete options when pressed SPACE.
◆ on_margin_clicked()
def pycross.utils.synteditor.SynEditor.on_margin_clicked |
( |
|
self, |
|
|
|
nmargin, |
|
|
|
nline, |
|
|
|
modifiers |
|
) |
| |
Toggle marker for the line the margin was clicked on.
◆ reset_autocomplete_source()
def pycross.utils.synteditor.SynEditor.reset_autocomplete_source |
( |
|
self | ) |
|
◆ ARROW_MARKER_NUM
int pycross.utils.synteditor.SynEditor.ARROW_MARKER_NUM = 8 |
|
static |
arrow marker type to place on the left margin
◆ autocomplete
pycross.utils.synteditor.SynEditor.autocomplete |
Qsci.QsciAPIs
internal autocomplete object
◆ autocomplete_source
pycross.utils.synteditor.SynEditor.autocomplete_source |
list
|None
autocompletion source
◆ lexer
pycross.utils.synteditor.SynEditor.lexer |
The documentation for this class was generated from the following file: