def _disconnect_text ( self ): """ Disconnects the event handlers for the pop up text editor. """ if self._text is not None: disconnect( self._text, wx.EVT_TEXT_ENTER ) disconnect_no_id( self._text, wx.EVT_KILL_FOCUS, wx.EVT_ENTER_WINDOW, wx.EVT_LEAVE_WINDOW, wx.EVT_CHAR )
def dispose(self): """ Disposes of the contents of an editor. """ disconnect_no_id( self.control, wx.EVT_ERASE_BACKGROUND, wx.EVT_PAINT, wx.EVT_SET_FOCUS, wx.EVT_LEFT_DOWN, wx.EVT_LEFT_UP, wx.EVT_MOTION, wx.EVT_MOUSEWHEEL, wx.EVT_ENTER_WINDOW, wx.EVT_LEAVE_WINDOW, wx.EVT_SIZE) if self._text is not None: disconnect(self._text, wx.EVT_TEXT_ENTER) disconnect_no_id( self._text, wx.EVT_KILL_FOCUS, wx.EVT_ENTER_WINDOW, wx.EVT_LEAVE_WINDOW, wx.EVT_CHAR) super(_ThemedSliderEditor, self).dispose()
def _disconnect_text(self): """ Disconnects the event handlers for the pop up text editor. """ if self._text is not None: disconnect(self._text, wx.EVT_TEXT_ENTER) disconnect_no_id(self._text, wx.EVT_KILL_FOCUS, wx.EVT_ENTER_WINDOW, wx.EVT_LEAVE_WINDOW, wx.EVT_CHAR)
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. """ # Remove all of the wx event listeners: disconnect_no_id( self.control, wx.EVT_ERASE_BACKGROUND, wx.EVT_PAINT, wx.EVT_CHAR, wx.EVT_SET_FOCUS, wx.EVT_LEFT_UP, wx.EVT_SIZE ) super( _ThemedTextEditor, self ).dispose()
def _destroy_text(self): """ Destroys the current text control. """ self._ignore_focus = self._in_text_window disconnect(self._text, wx.EVT_TEXT_ENTER) disconnect_no_id(self._text, wx.EVT_KILL_FOCUS, wx.EVT_ENTER_WINDOW, wx.EVT_LEAVE_WINDOW, wx.EVT_CHAR) self.control.DestroyChildren() self._text = None
def _enum_completed ( self, event = None ): """ Handles the Enum drop-down control losing focus. """ if self._ui is not None: self._ignore_focus = True disconnect_no_id( self._ui.info.drop_down.control, wx.EVT_KILL_FOCUS ) self._ui.dispose() del self._ui
def _enum_completed(self, event=None): """ Handles the Enum drop-down control losing focus. """ if self._ui is not None: self._ignore_focus = True disconnect_no_id(self._ui.info.drop_down.control, wx.EVT_KILL_FOCUS) self._ui.dispose() del self._ui
def dispose ( self ): """ Disposes of the contents of an editor. """ # Remove all of the wx event handlers: disconnect_no_id( self.control, wx.EVT_ERASE_BACKGROUND, wx.EVT_PAINT, wx.EVT_SET_FOCUS, wx.EVT_LEAVE_WINDOW, wx.EVT_ENTER_WINDOW, wx.EVT_LEFT_DOWN, wx.EVT_LEFT_UP, wx.EVT_MOTION, wx.EVT_MOUSEWHEEL, wx.EVT_SIZE ) # Disconnect the pop-up text event handlers: self._disconnect_text() super( _ScrubberEditor, self ).dispose()
def dispose(self): """ Disposes of the contents of an editor. """ # Remove all of the wx event handlers: disconnect_no_id(self.control, wx.EVT_ERASE_BACKGROUND, wx.EVT_PAINT, wx.EVT_SET_FOCUS, wx.EVT_LEAVE_WINDOW, wx.EVT_ENTER_WINDOW, wx.EVT_LEFT_DOWN, wx.EVT_LEFT_UP, wx.EVT_MOTION, wx.EVT_MOUSEWHEEL, wx.EVT_SIZE) # Disconnect the pop-up text event handlers: self._disconnect_text() super(_ScrubberEditor, 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_trait_change( self.update_editor, self.extended_name + '_items', remove = True ) self.on_trait_change( self._refresh, 'adapter.+update', remove = True ) super( _ListStrEditor, 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_trait_change(self.update_editor, self.extended_name + '_items', remove=True) self.on_trait_change(self._refresh, 'adapter.+update', remove=True) super(_ListStrEditor, self).dispose()