mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
* 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:
@@ -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
|
||||
---------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user