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

Method __init__

src/pptx/action.py:196–206  ·  view source on GitHub ↗
(
        self,
        xPr: CT_NonVisualDrawingProps | CT_TextCharacterProperties,
        parent: BaseShape,
        hover: bool = False,
    )

Source from the content-addressed store, hash-verified

194 """Represents a hyperlink action on a shape or text run."""
195
196 def __init__(
197 self,
198 xPr: CT_NonVisualDrawingProps | CT_TextCharacterProperties,
199 parent: BaseShape,
200 hover: bool = False,
201 ):
202 super(Hyperlink, self).__init__(parent)
203 # xPr is either a cNvPr or rPr element
204 self._element = xPr
205 # _hover determines use of `a:hlinkClick` or `a:hlinkHover`
206 self._hover = hover
207
208 @property
209 def address(self) -> str | None:

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected