def rectangle(self, gc, x, y, width, height, onerror=None): request.PolyRectangle(display=self.display, onerror=onerror, drawable=self.id, gc=gc, rectangles=[(x, y, width, height)])
def poly_rectangle(self, gc, rectangles, onerror=None): request.PolyRectangle(display=self.display, onerror=onerror, drawable=self.id, gc=gc, rectangles=rectangles)