def _unplug(widget, container):
    if isinstance(widget, QDockContainer):
        return _unplug_container(widget, container)
    if isinstance(widget, QDockTabWidget):
        return _unplug_tab_widget(widget, container)
    if isinstance(widget, QDockSplitter):
        return _unplug_splitter(widget, container)
    raise TypeError("unhandled layout widget '%s'" % type(widget).__name__)
The main unplug dispatch method.
dataset/ETHPy150Open nucleic/enaml/enaml/qt/docking/layout_handling.py/_unplug