示例#1
0
 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)])
示例#2
0
 def poly_rectangle(self, gc, rectangles, onerror=None):
     request.PolyRectangle(display=self.display,
                           onerror=onerror,
                           drawable=self.id,
                           gc=gc,
                           rectangles=rectangles)