* Rename the wrappers for the C++ wxPlatformInfo to wx.PlatformInformation.

* Restore the wx.PlatformInfo tuple like it exists in Classic.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-04-24 00:15:33 +00:00
parent 053aadb224
commit 8fecc2b5f9
13 changed files with 28 additions and 53 deletions

View File

@@ -111,28 +111,6 @@ your encoding to Unicode before passing the text to the wx API.
wx.Platform, wx.PlatformInfo
----------------------------
wx.Platform has been renamed to wx.Port, and wx.PlatformInfo has been renamed
to wx.PortInfo. The reason for this change is that wrappers for a C++ class
named wxPlatformInfo have been added, and would have caused a name conflict
if the old wx.PlatformInfo had not been renamed. To make transitioning a
little easier, I've made instances of the new wx.PlatformInfo class act like
a Python sequence containing the same items as the old wx.PlatformInfo. So
that means that you can simply change things like this::
if 'wxMac' in wx.PlatformInfo:
...
to this::
if 'wxMac' in wx.PlatformInfo.Get():
...
Font, Pen, and Brush Styles
---------------------------