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

Method _clear_click_action

src/pptx/action.py:149–157  ·  view source on GitHub ↗

Remove any existing click action.

(self)

Source from the content-addressed store, hash-verified

147 hlink.rId = self.part.relate_to(slide.part, RT.SLIDE)
148
149 def _clear_click_action(self):
150 """Remove any existing click action."""
151 hlink = self._hlink
152 if hlink is None:
153 return
154 rId = hlink.rId
155 if rId:
156 self.part.drop_rel(rId)
157 self._element.remove(hlink)
158
159 @property
160 def _hlink(self) -> CT_Hyperlink | None:

Callers 2

target_slideMethod · 0.95

Calls 2

removeMethod · 0.80
drop_relMethod · 0.45

Tested by 1