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

Function SlideShapeFactory

src/pptx/shapes/shapetree.py:863–867  ·  view source on GitHub ↗

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

(shape_elm: ShapeElement, parent: ProvidesPart)

Source from the content-addressed store, hash-verified

861
862
863def SlideShapeFactory(shape_elm: ShapeElement, parent: ProvidesPart) -> BaseShape:
864 """Return appropriate shape object for `shape_elm` on a slide."""
865 if shape_elm.has_ph_elm:
866 return _SlidePlaceholderFactory(shape_elm, parent)
867 return BaseShapeFactory(shape_elm, parent)
868
869
870class _MoviePicElementCreator(object):

Callers 4

_shape_factoryMethod · 0.85
__getitem__Method · 0.85
__iter__Method · 0.85

Calls 2

_SlidePlaceholderFactoryFunction · 0.85
BaseShapeFactoryFunction · 0.85

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…