X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8a71fa08cdf8f1ac9963b35928e42dd6ac39bc2..d4a376ac6c526b51dda4b40bc56e7fedb6c15ff5:/wxPython/docs/MigrationGuide.txt diff --git a/wxPython/docs/MigrationGuide.txt b/wxPython/docs/MigrationGuide.txt index c469b3808f..7dd57bec23 100644 --- a/wxPython/docs/MigrationGuide.txt +++ b/wxPython/docs/MigrationGuide.txt @@ -415,6 +415,31 @@ Insert, Prepend, and etc.) methods any longer. Just use Add and the wrappers will figure out what to do. +PlatformInfo +------------ + +Added wx.PlatformInfo which is a tuple containing strings that +describe the platform and build options of wxPython. This lets you +know more about the build than just the __WXPORT__ value that +wx.Platform contains, such as if it is a GTK2 build. For example, +instead of:: + + if wx.Platform == "__WXGTK__": + ... + +you should do this:: + + if "__WXGTK__" in wx.PlatformInfo: + ... + +and you can specifically check for a wxGTK2 build by looking for +"gtk2" in wx.PlatformInfo. Unicode builds are also detectable this +way. If there are any other platform/toolkit/build flags that make +sense to add to this tuple please let me know. + +BTW, wx.Platform will probably be deprecated in the future. + + Other Stuff ----------- @@ -455,3 +480,5 @@ there are compatibility aliases for much of the above items. The wxWave class has been renamed to wxSound, and now has a slightly different API. + +