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

Class Subshape

src/pptx/shapes/__init__.py:12–26  ·  view source on GitHub ↗

Provides access to the containing part for drawing elements that occur below a shape. Access to the part is required for example to add or drop a relationship. Provides `self._parent` attribute to subclasses.

Source from the content-addressed store, hash-verified

10
11
12class Subshape(object):
13 """Provides access to the containing part for drawing elements that occur below a shape.
14
15 Access to the part is required for example to add or drop a relationship. Provides
16 `self._parent` attribute to subclasses.
17 """
18
19 def __init__(self, parent: ProvidesPart):
20 super(Subshape, self).__init__()
21 self._parent = parent
22
23 @property
24 def part(self) -> XmlPart:
25 """The package part containing this object."""
26 return self._parent.part

Callers 1

subshape_with_parent_Method · 0.90

Calls

no outgoing calls

Tested by 1

subshape_with_parent_Method · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…