From e75fd8a4cab0e62e60faf94ac0fdb860a059c96e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 14 Jan 2004 01:55:47 +0000 Subject: [PATCH 1/1] typo git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/docs/MigrationGuide.html | 25 +++++++++++++++++-------- wxPython/docs/MigrationGuide.txt | 2 +- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/wxPython/docs/MigrationGuide.html b/wxPython/docs/MigrationGuide.html index d6b33f9cf1..e4a6f1b3f8 100644 --- a/wxPython/docs/MigrationGuide.html +++ b/wxPython/docs/MigrationGuide.html @@ -260,13 +260,14 @@ SetClippingRegion(point, size) SetClippingRect(rect) SetClippingRegionAsRegion(region); -

If you have code that draws on a DC you will get errors because of -these changes, but it should be easy to fix the code. You can either -change the name of the Type B method called to the names shown -above, or just add parentheses around the parameters as needed to turn -them into tuples and let the SWIG typemaps turn them into the wx.Point -or wx.Size object that is expected. Then you will be calling the new -Type A method. For example, if you had this code before:

+

If you have code that draws on a DC and you are using the new wx +namespace then you will get errors because of these changes, but +it should be easy to fix the code. You can either change the name of +the Type B method called to the names shown above, or just add +parentheses around the parameters as needed to turn them into tuples +and let the SWIG typemaps turn them into the wx.Point or wx.Size +object that is expected. Then you will be calling the new Type A +method. For example, if you had this code before:

 dc.DrawRectangle(x, y, width, height)
 
@@ -284,6 +285,14 @@ dc.DrawRectangle(p.x, p.y, s.width, s.height)
 dc.DrawRectangle(p, s)
 
+

Now before you start yelling and screaming at me for breaking all your +code, take note that I said above "...using the new wx namespace..." +That's because if you are still importing from wxPython.wx then there +are some classes defined there with Draw and etc. methods that have +2.4 compatible signatures. However if/when the old wxPython.wx +namespace is removed then these classes will be removed too so you +should plan on migrating to the new namespace and new DC Draw methods +before that time.

Building, Extending and Embedding wxPython

@@ -364,7 +373,7 @@ wxPyTypeCast at all.

diff --git a/wxPython/docs/MigrationGuide.txt b/wxPython/docs/MigrationGuide.txt index bb274019e0..aca5b30ffa 100644 --- a/wxPython/docs/MigrationGuide.txt +++ b/wxPython/docs/MigrationGuide.txt @@ -312,7 +312,7 @@ That's because if you are still importing from wxPython.wx then there are some classes defined there with Draw and etc. methods that have 2.4 compatible signatures. However if/when the old wxPython.wx namespace is removed then these classes will be removed too so you -should plam on migrating to the new namespace and new DC Draw methods +should plan on migrating to the new namespace and new DC Draw methods before that time. -- 2.47.2