X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ce9b1bfd310e61bbfb5ad1e568144fe9efc14f7..a3f4cbd6c8bf939765639251a82308f40f7f5514:/wxPython/docs/MigrationGuide.txt?ds=sidebyside diff --git a/wxPython/docs/MigrationGuide.txt b/wxPython/docs/MigrationGuide.txt index 486939494e..a0de571622 100644 --- a/wxPython/docs/MigrationGuide.txt +++ b/wxPython/docs/MigrationGuide.txt @@ -424,7 +424,7 @@ be used from XRC. You should not use AddWindow, AddSizer, AddSpacer (and similar for Insert, Prepend, and etc.) methods any longer. Just use Add and the wrappers will figure out what to do. **[Changed in 2.5.2.x]** -AddWindow, AddSize, AddSpacer and etc. will now issue a +AddWindow, AddSizer, AddSpacer and etc. will now issue a DeprecationWarning. **[Changed in 2.5.2.x]** The Sizers have had some fundamental internal @@ -698,10 +698,11 @@ there seems to be less and less interest in maintaining the C++ version. There are only a few known compatibility issues at this time. First -is the location of OGL. The deprecated version is located in the -wx.ogl module, and the new version is in the wx.lib.ogl package. So -this just means that to start using the new version you need to adjust -your imports. So if your code currently has something like this:: +is that the ogl.DrawnShape has not been reimplemented yet. Next is the +location of OGL. The deprecated version is located in the wx.ogl +module, and the new version is in the wx.lib.ogl package. So this +just means that to start using the new version you need to adjust your +imports. So if your code currently has something like this:: import wx import wx.ogl as ogl @@ -874,7 +875,7 @@ new Navigate method in the wx.Window class to help send the event and it is used something like this:: flags = wx.NavigationKeyEvent.IsForward - if event.ShiftDown: + if event.ShiftDown(): flags = wx.NavigationKeyEvent.IsBackward if event.ControlDown(): flags |= wx.NavigationKeyEvent.WinChange