parameters: (self, value)
docstring: Called by :class:`EditTextCtrl`, to accept the changes and to send the
          ``EVT_TREE_END_LABEL_EDIT`` event.
  
          :param `value`: the new value of the item label.
docstring_summary: Called by :class:`EditTextCtrl`, to accept the changes and to send the
          ``EVT_TREE_END_LABEL_EDIT`` event.
docstring_tokens: Called by : class : EditTextCtrl to accept the changes and to send the EVT_TREE_END_LABEL_EDIT event .
function: def OnAcceptEdit(self, value):
          """
          Called by :class:`EditTextCtrl`, to accept the changes and to send the
          ``EVT_TREE_END_LABEL_EDIT`` event.
  
          :param `value`: the new value of the item label.        
          """
  
          # TODO if the validator fails this causes a crash
          le = TreeEvent(wx.wxEVT_COMMAND_TREE_END_LABEL_EDIT, self._owner.GetId())
          le.SetItem(self._editItem)
          le.SetEventObject(self._owner)
          le.SetLabel(value)
          le.SetInt(self._curColumn if self._curColumn >= 0 else 0)
          le._editCancelled = False
          self._owner.GetEventHandler().ProcessEvent(le)
  
          if not le.IsAllowed():
              return
  
          if self._curColumn == -1:
              self._curColumn = 0
             
          self.SetItemText(self._editItem, unicode(value), self._curColumn)
function_tokens: def OnAcceptEdit ( self , value ) : # TODO if the validator fails this causes a crash le = TreeEvent ( wx . wxEVT_COMMAND_TREE_END_LABEL_EDIT , self . _owner . GetId ( ) ) le . SetItem ( self . _editItem ) le . SetEventObject ( self . _owner ) le . SetLabel ( value ) le . SetInt ( self . _curColumn if self . _curColumn >= 0 else 0 ) le . _editCancelled = False self . _owner . GetEventHandler ( ) . ProcessEvent ( le ) if not le . IsAllowed ( ) : return if self . _curColumn == - 1 : self . _curColumn = 0 self . SetItemText ( self . _editItem , unicode ( value ) , self . _curColumn )