def dispose ( self ):
        if self.factory.view is not 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 --------------------------------------------------------
Disposes of the contents of an editor.
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/text_editor.py/ReadonlyEditor.dispose