]> git.saurik.com Git - wxWidgets.git/commitdiff
Got sidetracked and forgot to finish the new OGL section before
authorRobin Dunn <robin@alldunn.com>
Wed, 26 May 2004 05:16:41 +0000 (05:16 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 26 May 2004 05:16:41 +0000 (05:16 +0000)
checking in the last change.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/docs/MigrationGuide.txt

index f4f08c27d2d32e4433f22b1de94f73dfe10c3ae5..df10c84f8c16b2cf2e97bfc74eff781a94a9953d 100644 (file)
@@ -609,7 +609,26 @@ Then just change it to this::
      import wx
      import wx.lib.ogl as ogl
 
-
+The other compatibility issue deals with removing a wart in the
+original API that was necessary in order to allow overloaded methods
+in derived classes to call the same method in the base class when
+using the old SWIG.  Instead dedaling with the wart you can now just
+call the base class method like you woudl for any other Python class.
+For example, if you had to do something like this previously::
+
+    class MyDividedShape(ogl.DividedShape):
+        ...
+        def OnSizingEndDragLeft(self, pt, x, y, keys, attch):
+            self.base_OnSizingEndDragLeft(pt, x, y, keys, attch)
+            ...
+
+You will need to change it to be like this::
+
+    class MyDividedShape(ogl.DividedShape):
+        ...
+        def OnSizingEndDragLeft(self, pt, x, y, keys, attch):
+            ogl.DividedShape.OnSizingEndDragLeft(self, pt, x, y, keys, attch)
+            ...