MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / build

Method build

utils/src/presentation.py:269–281  ·  view source on GitHub ↗

Build the shape element in a slide. Args: slide (PPTXSlide): The slide to build the shape in. Returns: The built shape.

(self, slide: PPTXSlide)

Source from the content-addressed store, hash-verified

267 return obj
268
269 def build(self, slide: PPTXSlide):
270 """
271 Build the shape element in a slide.
272
273 Args:
274 slide (PPTXSlide): The slide to build the shape in.
275
276 Returns:
277 The built shape.
278 """
279 return slide.shapes._shape_factory(
280 slide.shapes._spTree.insert_element_before(parse_xml(self.xml), "p:extLst")
281 )
282
283 def __repr__(self) -> str:
284 return f"{self.__class__.__name__}: shape {self.shape_idx} of slide {self.slide_idx}"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected