parameters: (self)
docstring: Called by :class:`EditCtrl`, to cancel the changes and to send the
          ``EVT_TREE_END_LABEL_EDIT`` event.
docstring_summary: Called by :class:`EditCtrl`, to cancel the changes and to send the
          ``EVT_TREE_END_LABEL_EDIT`` event.
docstring_tokens: Called by : class : EditCtrl to cancel the changes and to send the EVT_TREE_END_LABEL_EDIT event .
function: def OnCancelEdit(self):
          """
          Called by :class:`EditCtrl`, to cancel the changes and to send the
          ``EVT_TREE_END_LABEL_EDIT`` event.
          """
  
          # let owner know that the edit was cancelled
          le = TreeEvent(wx.wxEVT_COMMAND_TREE_END_LABEL_EDIT, self._owner.GetId())
          le.SetItem(self._editItem)
          le.SetEventObject(self._owner)
          le.SetLabel("")
          le._editCancelled = True
  
          self._owner.GetEventHandler().ProcessEvent(le)
function_tokens: def OnCancelEdit ( self ) : # let owner know that the edit was cancelled le = TreeEvent ( wx . wxEVT_COMMAND_TREE_END_LABEL_EDIT , self . _owner . GetId ( ) ) le . SetItem ( self . _editItem ) le . SetEventObject ( self . _owner ) le . SetLabel ( "" ) le . _editCancelled = True self . _owner . GetEventHandler ( ) . ProcessEvent ( le )