memDC = wxMemoryDC()
memDC.SelectObject(self.bmp)
- dc.Blit(self.pos.x, self.pos.y,
- self.bmp.GetWidth(), self.bmp.GetHeight(),
- memDC, 0, 0, op, True)
+ dc.Blit((self.pos.x, self.pos.y),
+ (self.bmp.GetWidth(), self.bmp.GetHeight()),
+ memDC, (0, 0), op, True)
return True
else:
dc.Clear()
dc.SetTextForeground(wxRED)
dc.SetFont(font)
- dc.DrawText(text, 0, 0)
+ dc.DrawText(text, (0, 0))
dc.SelectObject(wxNullBitmap)
mask = wxMaskColour(bmp, bg_colour)
bmp.SetMask(mask)
while x < sz.width:
y = 0
while y < sz.height:
- dc.DrawBitmap(self.bg_bmp, x, y)
+ dc.DrawBitmap(self.bg_bmp, (x, y))
y = y + h
x = x + w
def EraseShape(self, shape, dc):
r = shape.GetRect()
- dc.SetClippingRegion(r.x, r.y, r.width, r.height)
+ dc.SetClippingRect(r)
self.TileBackground(dc)
self.DrawShapes(dc)
dc.DestroyClippingRegion()
if not dc:
dc = wxClientDC(self)
rect = self.GetUpdateRegion().GetBox()
- dc.SetClippingRegion(rect.x, rect.y, rect.width, rect.height)
+ dc.SetClippingRect(rect)
self.TileBackground(dc)