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

# Create a singleton handler:
Handles the DockWindow becoming empty.
dataset/ETHPy150Open enthought/pyface/pyface/dock/dock_window.py/DockWindowHandler.dock_window_empty