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
if not self.dragShape or not evt.Dragging() or not evt.LeftIsDown():
return
- # if we have a shape, but havn't started dragging yet
+ # if we have a shape, but haven't started dragging yet
if self.dragShape and not self.dragImage:
# only start the drag after having moved a couple pixels