

def dispose(self):
    ' Disposes of the contents of an editor.\n        '
    if (self.factory.view is not None):
        control = control.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()

dataset/ETHPy150Open enthought/traitsui/traitsui/wx/text_editor.py ReadonlyEditor.dispose/VarMisuse@28/50 `self`->`control`