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

Method _remove_hlink

src/pptx/action.py:259–270  ·  view source on GitHub ↗

Remove the a:hlinkClick or a:hlinkHover element. Also drops any relationship it might have.

(self)

Source from the content-addressed store, hash-verified

257 return self._element.hlinkClick
258
259 def _remove_hlink(self):
260 """Remove the a:hlinkClick or a:hlinkHover element.
261
262 Also drops any relationship it might have.
263 """
264 hlink = self._hlink
265 if hlink is None:
266 return
267 rId = hlink.rId
268 if rId:
269 self.part.drop_rel(rId)
270 self._element.remove(hlink)

Callers 1

addressMethod · 0.95

Calls 2

removeMethod · 0.80
drop_relMethod · 0.45

Tested by

no test coverage detected