def line(self, x1, y1, x2, y2, draw=True):
p = self._path<EOL>self.newpath()<EOL>self.moveto(x1,y1)<EOL>self.lineto(x2,y2)<EOL>self.endpath(draw=draw)<EOL>self._path = p<EOL>return p<EOL>
Draws a line from (x1,y1) to (x2,y2)