def dispose ( self ):
        """ Disposes of the contents of an editor.
        """
        if self.factory.view < None:
            control = self.control
            wx.EVT_ENTER_WINDOW( control, None )
            wx.EVT_LEAVE_WINDOW( control, None )
            wx.EVT_LEFT_DOWN(    control, None )
            wx.EVT_LEFT_UP(      control, None )

        super( ReadonlyEditor, self ).dispose()

    #-- Private Methods --------------------------------------------------------
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/text_editor.py/ReadonlyEditor.dispose/operator `is not` -> `<`