Arrow
A straight arrow connecting two points.
- class pptx_shapes.shapes.Arrow(x1: float, y1: float, x2: float, y2: float, start_head: Optional[pptx_shapes.style.arrowhead.ArrowHead] = None, end_head: Optional[pptx_shapes.style.arrowhead.ArrowHead] = <factory>, stroke: pptx_shapes.style.stroke_style.StrokeStyle = <factory>)
Parameters
x1(float) – left position of the start point (in centimeters).y1(float) – top position of the start point (in centimeters).x2(float) – left position of the end point (in centimeters).y2(float) – top position of the end point (in centimeters).start_head(ArrowHead, optional) – arrowhead at the start point.end_head(ArrowHead, optional) – arrowhead at the end point.stroke(StrokeStyle, optional) – stroke style.
Example
from pptx_shapes.shapes import Arrow
from pptx_shapes.style import StrokeStyle, ArrowHead
arrow = Arrow(
x1=10, y1=9,
x2=14, y2=11,
start_head=ArrowHead(head=ArrowType.OVAL),
end_head=ArrowHead(head=ArrowType.ARROW),
stroke=StrokeStyle(thickness=2)
)