def dock_window_empty ( self, dock_window ):
        if dock_window.auto_close:
            dock_window.control.GetParent.Destroy()

#-- HasTraits overrides: -------------------------------------------------------

    #---------------------------------------------------------------------------
    #  Edits the object's traits: (Overrides HasTraits)
    #---------------------------------------------------------------------------
Handles a DockWindow becoming empty.
dataset/ETHPy150Open enthought/traitsui/traitsui/handler.py/Handler.dock_window_empty