Aliasing wxDC methods like was dangerous...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-12-24 01:24:58 +00:00
parent d40e73919c
commit 88c0b10897

View File

@@ -34,22 +34,29 @@ def wxPyTypeCast(obj, typeStr):
wxPy_isinstance = isinstance wxPy_isinstance = isinstance
wxDC.FloodFill = wxDC.FloodFillXY
wxDC.GetPixel = wxDC.GetPixelXY # To get wxDC methods compatible with the old 2.4 wxDC uncomment these
wxDC.DrawLine = wxDC.DrawLineXY # lines. Note however that doing this will break any code that
wxDC.CrossHair = wxDC.CrossHairXY # expects the new-style methods. (Is there a way to do this that does
wxDC.DrawArc = wxDC.DrawArcXY # not have that problem? I suppose we could provide two versions of
wxDC.DrawCheckMark = wxDC.DrawCheckMarkXY # the DC classes and just rename them here...)
wxDC.DrawEllipticArc = wxDC.DrawEllipticArcXY
wxDC.DrawPoint = wxDC.DrawPointXY #wxDC.FloodFill = wxDC.FloodFillXY
wxDC.DrawRectangle = wxDC.DrawRectangleXY #wxDC.GetPixel = wxDC.GetPixelXY
wxDC.DrawRoundedRectangle = wxDC.DrawRoundedRectangleXY #wxDC.DrawLine = wxDC.DrawLineXY
wxDC.DrawCircle = wxDC.DrawCircleXY #wxDC.CrossHair = wxDC.CrossHairXY
wxDC.DrawEllipse = wxDC.DrawEllipseXY #wxDC.DrawArc = wxDC.DrawArcXY
wxDC.DrawIcon = wxDC.DrawIconXY #wxDC.DrawCheckMark = wxDC.DrawCheckMarkXY
wxDC.DrawBitmap = wxDC.DrawBitmapXY #wxDC.DrawEllipticArc = wxDC.DrawEllipticArcXY
wxDC.DrawText = wxDC.DrawTextXY #wxDC.DrawPoint = wxDC.DrawPointXY
wxDC.DrawRotatedText = wxDC.DrawRotatedTextXY #wxDC.DrawRectangle = wxDC.DrawRectangleXY
wxDC.Blit = wxDC.BlitXY #wxDC.DrawRoundedRectangle = wxDC.DrawRoundedRectangleXY
wxDC.SetClippingRegion = wxDC.SetClippingRegionXY #wxDC.DrawCircle = wxDC.DrawCircleXY
#wxDC.DrawEllipse = wxDC.DrawEllipseXY
#wxDC.DrawIcon = wxDC.DrawIconXY
#wxDC.DrawBitmap = wxDC.DrawBitmapXY
#wxDC.DrawText = wxDC.DrawTextXY
#wxDC.DrawRotatedText = wxDC.DrawRotatedTextXY
#wxDC.Blit = wxDC.BlitXY
#wxDC.SetClippingRegion = wxDC.SetClippingRegionXY