Standalone syntax editor window with a SynEditor object as the main widget.
More...
|
def | __init__ (self, lexer=Qsci.QsciLexerPython(), source=None, autocomplete_source=None, minsize=(600, 400), icon='file.png', title='::Code Editor ::') |
|
def | add_elements (self, lexer, source, autocomplete_source) |
| Constructs main layout blocks. More...
|
|
def | add_central (self, lexer, source, autocomplete_source) |
| Constructs the central widget (syntax editor). More...
|
|
def | add_bottom (self) |
| Constructs the bottom layout with the OK and Cancel buttons. More...
|
|
def | currenttext (self) |
| Returns the current text in the syntax editor. More...
|
|
Standalone syntax editor window with a SynEditor object as the main widget.
◆ __init__()
def pycross.utils.synteditor.SynEditorWidget.__init__ |
( |
|
self, |
|
|
|
lexer = Qsci.QsciLexerPython() , |
|
|
|
source = None , |
|
|
|
autocomplete_source = None , |
|
|
|
minsize = (600, 400) , |
|
|
|
icon = 'file.png' , |
|
|
|
title = ':: Code Editor ::' |
|
) |
| |
- Parameters
-
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()) |
minsize | tuple minimum window size in pixels (width, height) |
icon | str icon file to use in the window |
title | str the window title (caption) |
Reimplemented in pycross.utils.synteditor.PluginSynEditorWidget.
◆ add_bottom()
def pycross.utils.synteditor.SynEditorWidget.add_bottom |
( |
|
self | ) |
|
Constructs the bottom layout with the OK and Cancel buttons.
◆ add_central()
def pycross.utils.synteditor.SynEditorWidget.add_central |
( |
|
self, |
|
|
|
lexer, |
|
|
|
source, |
|
|
|
autocomplete_source |
|
) |
| |
◆ add_elements()
def pycross.utils.synteditor.SynEditorWidget.add_elements |
( |
|
self, |
|
|
|
lexer, |
|
|
|
source, |
|
|
|
autocomplete_source |
|
) |
| |
Constructs main layout blocks.
- Parameters
-
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()) |
◆ currenttext()
def pycross.utils.synteditor.SynEditorWidget.currenttext |
( |
|
self | ) |
|
Returns the current text in the syntax editor.
- Returns
str
current text in the syntax editor
◆ btn_cancel
pycross.utils.synteditor.SynEditorWidget.btn_cancel |
◆ btn_OK
pycross.utils.synteditor.SynEditorWidget.btn_OK |
◆ editor
pycross.utils.synteditor.SynEditorWidget.editor |
◆ layout_bottom
pycross.utils.synteditor.SynEditorWidget.layout_bottom |
◆ layout_main
pycross.utils.synteditor.SynEditorWidget.layout_main |
QtWidgets.QVBoxLayout
main window layout
The documentation for this class was generated from the following file: