def METHOD_NAME(self, pt1, pt2, pen):
    x1, y1 = int(np.round(pt1[0])), int(np.round(pt1[1]))
    x2, y2 = int(np.round(pt2[0])), int(np.round(pt2[1]))
    self.ctx.METHOD_NAME(((x1, y1), (x2, y2)), fill=pen.color,
                  width=pen.linewidth)