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

Method _change_to_noFill_bg

src/pptx/oxml/slide.py:118–126  ·  view source on GitHub ↗

Establish a `p:bg` child with no-fill settings. Any existing `p:bg` child is first removed.

(self)

Source from the content-addressed store, hash-verified

116 return cast(CT_BackgroundProperties, bg.bgPr)
117
118 def _change_to_noFill_bg(self) -> CT_Background:
119 """Establish a `p:bg` child with no-fill settings.
120
121 Any existing `p:bg` child is first removed.
122 """
123 self._remove_bg()
124 bg = self.get_or_add_bg()
125 bg.add_noFill_bgPr()
126 return bg
127
128
129class CT_NotesMaster(_BaseSlideElement):

Callers 1

get_or_add_bgPrMethod · 0.95

Calls 1

add_noFill_bgPrMethod · 0.80

Tested by

no test coverage detected