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

Method has_title

src/pptx/chart/axis.py:85–94  ·  view source on GitHub ↗

Read/write boolean specifying whether this axis has a title. |True| if this axis has a title, |False| otherwise. Assigning |True| causes an axis title to be added if not already present. Assigning |False| causes any existing title to be deleted.

(self)

Source from the content-addressed store, hash-verified

83
84 @property
85 def has_title(self):
86 """Read/write boolean specifying whether this axis has a title.
87
88 |True| if this axis has a title, |False| otherwise. Assigning |True|
89 causes an axis title to be added if not already present. Assigning
90 |False| causes any existing title to be deleted.
91 """
92 if self._element.title is None:
93 return False
94 return True
95
96 @has_title.setter
97 def has_title(self, value):

Callers

nothing calls this directly

Calls 1

get_or_add_titleMethod · 0.80

Tested by

no test coverage detected