parameters: (self, item)
docstring: Called by :class:`TreeTextCtrl`, to cancel the changes and to send the
          ``EVT_TREE_END_LABEL_EDIT`` event.
  
          :param `item`: an instance of :class:`GenericTreeItem`.
docstring_summary: Called by :class:`TreeTextCtrl`, to cancel the changes and to send the
          ``EVT_TREE_END_LABEL_EDIT`` event.
docstring_tokens: Called by : class : TreeTextCtrl to cancel the changes and to send the EVT_TREE_END_LABEL_EDIT event .
function: def OnCancelEdit(self, item):
          """
          Called by :class:`TreeTextCtrl`, to cancel the changes and to send the
          ``EVT_TREE_END_LABEL_EDIT`` event.
  
          :param `item`: an instance of :class:`GenericTreeItem`.        
          """
  
          # let owner know that the edit was cancelled
          le = TreeEvent(wxEVT_TREE_END_LABEL_EDIT, self.GetId())
          le._item = item
          le.SetEventObject(self)
          le._label = ""
          le._editCancelled = True
  
          self.GetEventHandler().ProcessEvent(le)
function_tokens: def OnCancelEdit ( self , item ) : # let owner know that the edit was cancelled le = TreeEvent ( wxEVT_TREE_END_LABEL_EDIT , self . GetId ( ) ) le . _item = item le . SetEventObject ( self ) le . _label = "" le . _editCancelled = True self . GetEventHandler ( ) . ProcessEvent ( le )