def dispose ( self ): """ Disposes of the contents of an editor. """ disconnect( self.control, wx.EVT_COMBOBOX, wx.EVT_TEXT_ENTER, wx.EVT_TEXT ) disconnect_no_id( self.control, wx.EVT_KILL_FOCUS ) super( SimpleEditor, self ).dispose()
def dispose ( self ): """ Disposes of the contents of an editor. """ disconnect( self.control, wx.EVT_LIST_BEGIN_DRAG, wx.EVT_LIST_BEGIN_LABEL_EDIT, wx.EVT_LIST_END_LABEL_EDIT, wx.EVT_LIST_ITEM_SELECTED, wx.EVT_LIST_ITEM_DESELECTED, wx.EVT_LIST_ITEM_RIGHT_CLICK, wx.EVT_LIST_ITEM_ACTIVATED ) disconnect_no_id( self.control, wx.EVT_SIZE, wx.EVT_CHAR, wx.EVT_LEFT_DOWN ) self.context_object.on_facet_set( self.update_editor, self.extended_name + '_items', remove = True ) self.on_facet_set( self._refresh, 'ls_adapter.+update', remove = True ) super( _ListStrEditor, self ).dispose()