

def dockable_get_control(self, parent):
    ' Gets a control that can be docked into a DockWindow.\n        '
    ui = self._view.ui(self._context, parent=parent, kind='subpanel', handler=self._handler)
    self._view = None
    if (self.element is None):
        self.ui = ui
    else:
        self._ui = ui
    return ui.control

dataset/ETHPy150Open enthought/traitsui/traitsui/dockable_view_element.py DockableViewElement.dockable_get_control/original