def _wx_add_view_with(self, dock_control, with_obj):
        """ Adds a view in the same region as another item. """

        # Find the item that we are adding the view 'with'.
        with_item = self._wx_view_dock_window.get_control(with_obj.id)
        if with_item is None:
            raise ValueError('Cannot find item %s' % with_obj)

        # The parent of a dock control is a dock region.
        with_item.parent.add(dock_control)

        return
dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/workbench/workbench_window_layout.py/WorkbenchWindowLayout._wx_add_view_with/original