(self, child)
Adds a child to the node

      :param child: the node to be added
Adds a child to the node
Adds a child to the node
def addChild(self, child):
      """ Adds a child to the node

      :param child: the node to be added
      """
      if type(child) == list:
         self.childs.extend(child)
      else:
         if not isinstance(child, GTreeNodeBase):
            Util.raiseException("The child must be a node", TypeError)
         self.childs.append(child)
def addChild ( self , child ) : if type ( child ) == list : self . childs . extend ( child ) else : if not isinstance ( child , GTreeNodeBase ) : Util . raiseException ( "The child must be a node" , TypeError ) self . childs . append ( child )