def destroy(self):

        control = self.control
        if control is not None:
            control.hide()
            self.component.destroy()
            control.deleteLater()

        self.control = None
        self.component = None
Destroy the toolkit-specific control that represents the editor.
dataset/ETHPy150Open enthought/pyface/pyface/tasks/enaml_pane.py/EnamlPane.destroy