# create a path
path = BezierPath()
# move to a point
path.moveTo((100, 100))
# line to a point
path.lineTo((150, 700))
path.lineTo((300, 100))
# set stroke color to black
stroke(0)
# set no fill
fill(None)
# set the width of the stroke
strokeWidth(50)
# draw the path
drawPath(path)
# move the canvas
translate(500, 0)
# set a miter limit
miterLimit(5)
# draw the same path again
drawPath(path)