def _on_select(self, object):
        """Called by the EngineTree when an object on the view is
        selected.  This basically sets the current object and current
        scene."""
        self.current_selection = object
        self._current_object = object
        try:
            scene = object.scene
            for s in self.scenes:
                if s.scene == scene:
                    self._current_scene = s
                    break
        except __HOLE__:
            pass
dataset/ETHPy150Open enthought/mayavi/mayavi/core/engine.py/Engine._on_select