This packages contains the available python widgets:
- PyCodeEdit
- PyInteractiveConsole
Bases: pyqode.core.api.code_edit.CodeEdit
Base class for creating a python code editor widget. The base class takes care of setting up the syntax highlighter.
Note
This code editor widget use PEP 0263 to detect file encoding. If the opened file does not respects the PEP 0263, locale.getpreferredencoding() is used as the default encoding.
Extends QCodeEdit.setPlainText to allow user to setPlainText without mimetype (since the python syntax highlighter does not use it).
Bases: pyqode.python.widgets.code_edit.PyCodeEditBase
Extends PyCodeEditBase with a set of hardcoded modes and panels specifics to a python code editor widget.
Bases: pyqode.core.widgets.interactive.InteractiveConsole
Extends the InteractiveConcole to highlight python traceback. If the user press on a filename in a traceback, the signal open_file_requested is emitted with the file path to open and the line where the user want to go.
Bases: PyQt5.QtGui.QTextBlockUserData
Extends mouseMoveEvent to display a pointing hand cursor when the mouse cursor is over a file location
Emits open_file_requested if the press event occured over a file location string.
Signal emitted when the user pressed on a traceback file location. Client code should open the requested file in the editor.
Bases: PyQt5.QtWidgets.QTreeWidget
Displays the outline of a PyCodeEdit. The treeview is fully synced with the fold panel.
To use the widget, you just have to set the active editor using PyOutlineTreeWidget.set_editor().
Sets the current editor. The widget display the structure of that editor.
Parameters: | editor – PyCodeEdit |
---|