(self, root)
Sets the root of the tree

      :param root: the tree root node
Sets the root of the tree
Sets the root of the tree
def setRoot(self, root):
      """ Sets the root of the tree

      :param root: the tree root node
      """
      if not isinstance(root, GTreeNodeBase):
         Util.raiseException("The root must be a node", TypeError)
      self.root_node = root
def setRoot ( self , root ) : if not isinstance ( root , GTreeNodeBase ) : Util . raiseException ( "The root must be a node" , TypeError ) self . root_node = root