traitsui.editors.shell_editor module

Editor that displays an interactive Python shell.

class traitsui.editors.shell_editor.ShellEditor(*args, **traits)[source]

Bases: BasicEditorFactory

Editor factory for shell editors.

command_executed = Str()

Extended trait name of the object event trait which is fired when a command is executed.

command_to_execute = Str()

Extended trait name of the object event trait which triggers a command execution in the shell when fired.

klass = Property()

The editor class to be instantiated.

share = Bool(False)

Should the shell interpreter use the object value’s dictionary?

traitsui.editors.shell_editor.ToolkitEditorFactory

alias of ShellEditor