Element.get_parent#

Element.get_parent(do_copy=False) Element[source]#

Gets the parent element.

Parameters:

do_copy (bool, default = False) – If True, the element will be copied.

Returns:

  • element (Element) – If a parent was found, an Element object will be returned.

  • None – If a parent was not found.