Added wx.PlatformInfo which is a tuple containing strings that

describe the platform and build options of wxPython.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-03-10 18:53:01 +00:00
parent fd92852491
commit dd346b947b
3 changed files with 66 additions and 1 deletions

View File

@@ -83,6 +83,10 @@ Added wx.Display and wx.VideoMode.
AppleEvents can be handled by overriding wx.App methods MacOpenFile,
MacPrintFile, MacNewFile, and MacReopenApp.
Added wx.PlatformInfo which is a tuple containing strings that
describe the platform and build options of wxPython. See the
MigrationGuide for more details.

View File

@@ -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
-----------