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

Class _BaseMaster

src/pptx/slide.py:71–91  ·  view source on GitHub ↗

Base class for master objects such as |SlideMaster| and |NotesMaster|. Provides access to placeholders and regular shapes.

Source from the content-addressed store, hash-verified

69
70
71class _BaseMaster(_BaseSlide):
72 """Base class for master objects such as |SlideMaster| and |NotesMaster|.
73
74 Provides access to placeholders and regular shapes.
75 """
76
77 @lazyproperty
78 def placeholders(self) -> MasterPlaceholders:
79 """|MasterPlaceholders| collection of placeholder shapes in this master.
80
81 Sequence sorted in `idx` order.
82 """
83 return MasterPlaceholders(self._element.spTree, self)
84
85 @lazyproperty
86 def shapes(self):
87 """
88 Instance of |MasterShapes| containing sequence of shape objects
89 appearing on this slide.
90 """
91 return MasterShapes(self._element.spTree, self)
92
93
94class NotesMaster(_BaseMaster):

Callers 3

placeholders_fixtureMethod · 0.90
shapes_fixtureMethod · 0.90
subclass_fixtureMethod · 0.90

Calls

no outgoing calls

Tested by 3

placeholders_fixtureMethod · 0.72
shapes_fixtureMethod · 0.72
subclass_fixtureMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…