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.
| 10 | |
| 11 | |
| 12 | class 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 |
no outgoing calls
searching dependent graphs…