Build the shape element in a slide. Args: slide (PPTXSlide): The slide to build the shape in. Returns: The built shape.
(self, slide: PPTXSlide)
| 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}" |
nothing calls this directly
no outgoing calls
no test coverage detected