pyface.i_python_shell module¶
The interface for an interactive Python shell.
- class pyface.i_python_shell.IPythonShell(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]¶
Bases:
ILayoutWidget
The interface for an interactive Python shell.
- command_executed = Event()¶
A command has been executed.
- key_pressed = Event(KeyPressedEvent)¶
A key has been pressed.
- interpreter()[source]¶
Get the shell’s interpreter
- Returns
interpreter – Returns the InteractiveInterpreter instance.
- Return type
InteractiveInterpreter
- bind(name, value)[source]¶
Binds a name to a value in the interpreter’s namespace.
- Parameters
name (str) – The python idetifier to bind the value to.
value (Any) – The python object to be bound into the interpreter’s namespace.