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

Method basename

src/pptx/shapes/autoshape.py:222–230  ·  view source on GitHub ↗

Base of shape name for this auto shape type. A shape name is like "Rounded Rectangle 7" and appears as an XML attribute for example at `p:sp/p:nvSpPr/p:cNvPr{name}`. This basename value is the name less the distinguishing integer. This value is escaped because at least one a

(self)

Source from the content-addressed store, hash-verified

220
221 @property
222 def basename(self) -> str:
223 """Base of shape name for this auto shape type.
224
225 A shape name is like "Rounded Rectangle 7" and appears as an XML attribute for example at
226 `p:sp/p:nvSpPr/p:cNvPr{name}`. This basename value is the name less the distinguishing
227 integer. This value is escaped because at least one autoshape-type name includes double
228 quotes ('"No" Symbol').
229 """
230 return saxutils.escape(self._basename, {'"': """})
231
232 @classmethod
233 def default_adjustment_values(cls, prst: MSO_AUTO_SHAPE_TYPE) -> tuple[AdjustmentValue, ...]:

Callers 2

from_fileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected