ContainerNode

class ContainerNode(*args, **kwargs)

Superclasses: RenderNode

A render node that can contain other render nodes.

Constructors

class ContainerNode
classmethod new(children: Sequence[RenderNode]) ContainerNode

Creates a new GskRenderNode instance for holding the given children.

The new node will acquire a reference to each of the children.

Parameters:

children – The children of the node

Methods

class ContainerNode
get_child(idx: int) RenderNode

Gets one of the children of container.

Parameters:

idx – the position of the child to get

get_n_children() int

Retrieves the number of direct children of node.