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

Method remove_all

src/pptx/oxml/xmlchemy.py:693–698  ·  view source on GitHub ↗

Remove child elements with tagname (e.g. "a:p") in `tagnames`.

(self, *tagnames: str)

Source from the content-addressed store, hash-verified

691 return elm
692
693 def remove_all(self, *tagnames: str) -> None:
694 """Remove child elements with tagname (e.g. "a:p") in `tagnames`."""
695 for tagname in tagnames:
696 matching = self.findall(qn(tagname))
697 for child in matching:
698 self.remove(child)
699
700 @property
701 def xml(self) -> str:

Callers 2

_remove_childMethod · 0.80
_remove_choice_groupMethod · 0.80

Calls 2

qnFunction · 0.90
removeMethod · 0.80

Tested by

no test coverage detected