

def close_dock_control(self, dock_control, abort):
    ' Handles the closing of a DockControl containing a Traits UI.\n        '
    ui = self.ui
    if ((not abort) and (not ui.handler.close(ui.info, True))):
        return False
    ui.dispose(abort=abort)
    self.ui = self.element = None
    return True

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