def drawRect(self, rect):
r = Rect(rect)<EOL>self.draw_cont += "<STR_LIT>" % JM_TUPLE(list(r.bl * self.ipctm) +[r.width, r.height])<EOL>self.updateRect(r)<EOL>self.lastPoint = r.tl<EOL>return self.lastPoint<EOL>
Draw a rectangle.