Exemplo n.º 1
0
 def fill_rectangle(self, gc, x, y, width, height, onerror=None):
     request.PolyFillRectangle(display=self.display,
                               onerror=onerror,
                               drawable=self.id,
                               gc=gc,
                               rectangles=[(x, y, width, height)])
Exemplo n.º 2
0
 def poly_fill_rectangle(self, gc, rectangles, onerror=None):
     request.PolyFillRectangle(display=self.display,
                               onerror=onerror,
                               drawable=self.id,
                               gc=gc,
                               rectangles=rectangles)