def finalize_close(d):
    d.visible = False
    d.closed()
    if d.destroy_on_close:
        d.destroy()
Finalize the closing of the declaration object.
dataset/ETHPy150Open nucleic/enaml/enaml/qt/qt_window.py/finalize_close