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

Method clear

src/pptx/text/text.py:71–76  ·  view source on GitHub ↗

Remove all paragraphs except one empty one.

(self)

Source from the content-addressed store, hash-verified

69 self._bodyPr.autofit = value
70
71 def clear(self):
72 """Remove all paragraphs except one empty one."""
73 for p in self._txBody.p_lst[1:]:
74 self._txBody.remove(p)
75 p = self.paragraphs[0]
76 p.clear()
77
78 def fit_text(
79 self,

Callers 3

load_from_xmlMethod · 0.45

Calls 1

removeMethod · 0.80