def _create_python_shell(self, parent):

        self._python_shell = python_shell = PythonShell(parent)
        python_shell.bind('widget', self._tree_viewer)
        python_shell.bind('w', self._tree_viewer)
        python_shell.bind('window', self)
        python_shell.bind('actions', self._actions)

        return python_shell.control

    #### Trait event handlers #################################################
Creates the Python shell.
dataset/ETHPy150Open enthought/pyface/examples/explorer.py/MainWindow._create_python_shell