def destroy(self):
        """ Destroy the toolkit-specific control that represents the editor.
        """

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

        self.control = None
        self.component = None
dataset/ETHPy150Open enthought/pyface/pyface/tasks/enaml_pane.py/EnamlPane.destroy/original