BCIEditor

class bci_framework.framework.editor.editor.BCIEditor(linenumber: PySide6.QtWidgets.QTextEdit, extension: Literal['.py', '.css'] = '.py', *args, **kwargs)[source]
connect_() None[source]

Update linenumber.

focusInEvent(event) None[source]

Keep the focus on the editor.

insert_completion(completion: str) None[source]

Process and inset the desired option.

keyPressEvent(event)[source]

Process key events.

set_completer(completer: bci_framework.framework.editor.editor.Autocompleter) None[source]

Update the autocompleter used.

set_options() None[source]

Configure QTextEdit.

show_completer(completion_prefix: str) None[source]

Show better options for current text.

text_under_cursor(tc=None) str[source]

Return de text under cursor.

update_linenumber() None[source]

Update linenumber.

wheelEvent(evt)[source]

Update the offset of the linenumber.