def drawLine(self, p1, p2):
p1 = Point(p1)<EOL>p2 = Point(p2)<EOL>if not (self.lastPoint == p1):<EOL><INDENT>self.draw_cont += "<STR_LIT>" % JM_TUPLE(p1 * self.ipctm)<EOL>self.lastPoint = p1<EOL>self.updateRect(p1)<EOL><DEDENT>self.draw_cont += "<STR_LIT>" % JM_TUPLE(p2 * self.ipctm)<EOL>self.updateRect(p2)<EOL>self.lastPoint = p2<EOL>return self.lastPoint<EOL>
Draw a line between two points.