(shape: BaseShape, fill_xml: str)
| 214 | |
| 215 | |
| 216 | def apply_fill(shape: BaseShape, fill_xml: str): |
| 217 | if fill_xml is None: |
| 218 | return |
| 219 | new_element = etree.fromstring(fill_xml) |
| 220 | shape.fill._xPr.getparent().replace(shape.fill._xPr, new_element) |
| 221 | |
| 222 | |
| 223 | def parse_groupshape(groupshape: GroupShape): |