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

Class CT_Shape

lab/cust-elm-classes/main.py:169–182  ·  view source on GitHub ↗

Custom element class

Source from the content-addressed store, hash-verified

167
168
169class CT_Shape(ElementBase):
170 """<p:sp> Custom element class"""
171 def _init(self):
172 _required_child(self, 'p:nvSpPr')
173 _required_child(self, 'p:spPr')
174
175 # children ------------------------
176 nvSpPr = property(lambda self: _child(self, 'p:nvSpPr'))
177 spPr = property(lambda self: _child(self, 'p:spPr'))
178 txBody = property(lambda self: _get_child_or_append(self, 'p:txBody'))
179
180 # convenience accessors
181 id = property(lambda self: self.nvSpPr.cNvPr.id)
182 name = property(lambda self: self.nvSpPr.cNvPr.name)
183
184
185class CT_ShapeNonVisual(ElementBase):

Callers 1

main.pyFile · 0.70

Calls 2

_childFunction · 0.85
_get_child_or_appendFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…