parameters: (self, id)
return_statement: return item
docstring: Used internally.
docstring_summary: Used internally.
docstring_tokens: Used internally .
function: def _RemoveById(self, id):
          """ Used internally. """
          
          # First we search for the menu item (recursively)
          menuParent = None
          item = None
          idx = wx.NOT_FOUND
          idx, menuParent = self.FindMenuItemPos(id)
          
          if idx != wx.NOT_FOUND:
          
              # Remove the menu item
              item = menuParent._itemsArr[idx]
              menuParent._itemsArr.pop(idx)
  
              # update group
              if item._groupPtr and item.IsRadioItem():
                  item._groupPtr.Remove(item)
              
              # Resize the menu
              menuParent.ResizeMenu()
          
          return item
function_tokens: def _RemoveById ( self , id ) : # First we search for the menu item (recursively) menuParent = None item = None idx = wx . NOT_FOUND idx , menuParent = self . FindMenuItemPos ( id ) if idx != wx . NOT_FOUND : # Remove the menu item item = menuParent . _itemsArr [ idx ] menuParent . _itemsArr . pop ( idx ) # update group if item . _groupPtr and item . IsRadioItem ( ) : item . _groupPtr . Remove ( item ) # Resize the menu menuParent . ResizeMenu ( ) return item