Hi all,
Ever since I made the changes to the wx.DC methods I've gone back and forth on whether I like it or not. The general consensus on wxPython-dev was that it was a good idea, but since it still hasn't sunk in for me I thought I would try to get opinions from a wider audience.
Please (re)read this section of the MigrationGuide and then vote for one of the following:
http://wxpython.org/MigrationGuide.html#new-wx-dc-methods
A) It's fine as-is, please leave it alone for future versions
B) It stinks, consistency isn't that important. Revert it.
C) Allow both TypeA and TypeB methods to use the same "normal" name.[1]
[1] This is possible using SWIG 1.3's method overloading abilities, but we will lose the use of keyword args for those methods. IOW, both of these will be possible:
dc.DrawBitmap(bmp, x, y)
dc.DrawBitmap(bmp, point)
but because of what SWIG has to do to make overloading work you would only be able to use positional args, so this would not be allowed:
dc.Blit(dest, size, otherDC, src, useMask=True)
If I do (C) then I'll leave the 'XY' versions in place for a few releases as aliases.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!