

def dockable_init_dockcontrol(self, dock_control):
    ' Allows the object to override the default DockControl settings.\n        '
    dockable = self
    if (self.element is not None):
        dockable = DockableViewElement(ui=self._ui, element=self.element, should_close=True)
        dock_control._ui = None
    dock_control.set(dockable=dockable, on_close=dockable.close_dock_control)

dataset/ETHPy150Open enthought/traitsui/traitsui/dockable_view_element.py DockableViewElement.dockable_init_dockcontrol/VarMisuse@51/89 `self`->`dock_control`