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

Function _NotesSlideShapeFactory

src/pptx/shapes/shapetree.py:837–841  ·  view source on GitHub ↗

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

(shape_elm: ShapeElement, parent: ProvidesPart)

Source from the content-addressed store, hash-verified

835
836
837def _NotesSlideShapeFactory(shape_elm: ShapeElement, parent: ProvidesPart) -> BaseShape:
838 """Return appropriate shape object for `shape_elm` on a notes slide."""
839 if isinstance(shape_elm, CT_Shape) and shape_elm.has_ph_elm:
840 return NotesSlidePlaceholder(shape_elm, parent)
841 return BaseShapeFactory(shape_elm, parent)
842
843
844def _SlidePlaceholderFactory(shape_elm: ShapeElement, parent: ProvidesPart):

Callers 3

_shape_factoryMethod · 0.85
_shape_factoryMethod · 0.85

Calls 2

BaseShapeFactoryFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…