AlphaHooks.widgets.console.interpreters package

Submodules

AlphaHooks.widgets.console.interpreters.python module

class AlphaHooks.widgets.console.interpreters.python.PythonInterpreter(config, parent=None)[source]

Bases: PyQt5.QtCore.QObject, code.InteractiveConsole

A reimplementation of the builtin InteractiveConsole to work with threads.

Signal push_command:
 receive commands from console_input
Signal push_source:
 receive source code from the code editor
Signal multi_line:
 signal whether more lines are needed by the interpreter
Signal error:send stderr immediately to console_log if an error occurs.
command(command)[source]

Get line of code to be run and signal if more lines needed.

Parameters:command – line retrieved from console_input on returnPressed
error
multi_line
push_command
push_source
runcode(code)[source]

Overrides and captures stdout and stdin from InteractiveConsole.

running
write(string)[source]

Override and signal to write directly to console_log. Usually used to emit that a traceback happened.

Module contents