Blit?

Alex Zeiger wrote:

I just upgraded to 2.5, and now for the line:

    wx.ClientDC(self).Blit(0, 0, w, h, dc, 0, 0)

I get the error:

  File "canvas.py", line 948, in UpdateDrawing
    wx.ClientDC(self).Blit(0, 0, w, h, dc, 0, 0)
  File "C:\Python23\Lib\site-packages\wx\gdi.py", line 2516, in Blit
    return _gdi.DC_Blit(*args, **kwargs)
TypeError: Expected a 2-tuple of integers or a wxPoint object.

From the docs, it looks like I'm using Blit correctly. What is this error referring to? Any help is appreciated.

Please read the MigrationGuide, and also look at the archives of this list for discussion about it and the decision to move back to the old function signatures. There is a module named fixdc.py that you can download from Download fixdc.py (wxPython) that will alter the DC class to make it be very close to what it was and what it will be in the next release.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!