MCPcopy Create free account
hub / github.com/scanny/python-pptx / _insert_child

Method _insert_child

src/pptx/oxml/xmlchemy.py:335–337  ·  view source on GitHub ↗
(obj: BaseOxmlElement, child: BaseOxmlElement)

Source from the content-addressed store, hash-verified

333 """Add an ``_insert_x()`` method to the element class for this child element."""
334
335 def _insert_child(obj: BaseOxmlElement, child: BaseOxmlElement):
336 obj.insert_element_before(child, *self._successors)
337 return child
338
339 _insert_child.__doc__ = (
340 "Return the passed ``<%s>`` element after inserting it as a chil"

Callers

nothing calls this directly

Calls 1

insert_element_beforeMethod · 0.80

Tested by

no test coverage detected