]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/docs/MigrationGuide.txt
Making wxUSE_WEBKIT for optionally building wxWebKitCtrl.
[wxWidgets.git] / wxPython / docs / MigrationGuide.txt
index f4f08c27d2d32e4433f22b1de94f73dfe10c3ae5..c67917c38fa0eda7cdebb1c446429ce1f1c4c441 100644 (file)
@@ -52,6 +52,12 @@ Also, you will probably not be able to do any kind of GUI or bitmap
 operation unless you first have created an app object, (even on
 Windows where most anything was possible before.)
 
+**[Changed in 2.5.2.0]** All the Window and GDI (pen, bitmap, etc.)
+class constructors and also many toplevel functions and static methods
+will now check that a wx.App object has already been created and will
+raise a wx.PyNoAppError exception if not.
+
+
 
 
 SWIG 1.3
@@ -588,6 +594,8 @@ provided by the makers of the ActiveX control that you are using.
 OGL is dead! LONG LIVE OGL!
 ---------------------------
 
+**[Changed in 2.5.2.0]** 
+
 The wx.ogl module has been deprecated in favor of the new Python port
 of the OGL library located at wx.lib.ogl contributed by Pierre Hjälm.
 This will hopefully greatly extend the life of OGL within wxPython by
@@ -609,7 +617,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)
+            ...