code: def drawRect(self, rect):
          
          r = Rect(rect)
          self.draw_cont += "%g %g %g %g re\n" % JM_TUPLE(list(r.bl * self.ipctm) + \
                                                 [r.width, r.height])
          self.updateRect(r)
          self.lastPoint = r.tl
          return self.lastPoint
docs: Draw a rectangle.