parameters: (self, item)
docstring: Returns the next item. Only for internal use right now.
  
          :return: An instance of :class:`GenericTreeItem` or ``None`` if there are no
           further items.
  
          :param `item`: an instance of :class:`GenericTreeItem`.
docstring_summary: Returns the next item. Only for internal use right now.
docstring_tokens: Returns the next item . Only for internal use right now .
function: def GetNext(self, item):
          """
          Returns the next item. Only for internal use right now.
  
          :return: An instance of :class:`GenericTreeItem` or ``None`` if there are no
           further items.
  
          :param `item`: an instance of :class:`GenericTreeItem`.
          """
  
          i = item
  
          # First see if there are any children.
          children = i.GetChildren()
          if len(children) > 0:
               return children[0]
          else:
               # Try a sibling of this or ancestor instead
               p = item
               toFind = None
               while p and not toFind:
                    toFind = self.GetNextSibling(p)
                    p = self.GetItemParent(p)
                    
               return toFind
function_tokens: def GetNext ( self , item ) : i = item # First see if there are any children. children = i . GetChildren ( ) if len ( children ) > 0 : return children [ 0 ] else : # Try a sibling of this or ancestor instead p = item toFind = None while p and not toFind : toFind = self . GetNextSibling ( p ) p = self . GetItemParent ( p ) return toFind