while x < sz.width:
y = -dy
while y < sz.height:
- dc.DrawBitmap(self.bg_bmp, (x, y))
+ dc.DrawBitmap(self.bg_bmp, x, y)
y = y + h
x = x + w
clr = colours[line]
y = (line+1) * self.lineHeight + 2
- # Updated for 2.5 - now takes tuple for pos
- dc.DrawText(clr, (self.cellWidth, y))
+ dc.DrawText(clr, self.cellWidth, y)
brush = wx.Brush(clr, wx.SOLID)
dc.SetBrush(brush)
- dc.DrawRectangle((12 * self.cellWidth, y),
- (6 * self.cellWidth, self.textHeight))
+ dc.DrawRectangle(12 * self.cellWidth, y,
+ 6 * self.cellWidth, self.textHeight)
dc.EndDrawing()