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

Function _MasterShapeFactory

src/pptx/shapes/shapetree.py:830–834  ·  view source on GitHub ↗

Return appropriate shape object for `shape_elm` on a slide master.

(shape_elm: ShapeElement, parent: ProvidesPart)

Source from the content-addressed store, hash-verified

828
829
830def _MasterShapeFactory(shape_elm: ShapeElement, parent: ProvidesPart) -> BaseShape:
831 """Return appropriate shape object for `shape_elm` on a slide master."""
832 if isinstance(shape_elm, CT_Shape) and shape_elm.has_ph_elm:
833 return MasterPlaceholder(shape_elm, parent)
834 return BaseShapeFactory(shape_elm, parent)
835
836
837def _NotesSlideShapeFactory(shape_elm: ShapeElement, parent: ProvidesPart) -> BaseShape:

Calls 2

MasterPlaceholderClass · 0.90
BaseShapeFactoryFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…