Hi Robin,
The wxPython 2.6 migration guide
(http://www.wxpython.org/MigrationGuide.html) says, in the
PlatformInfo section "BTW, wx.Platform will probably be deprecated in
the future.". Is that still planned?
I do like:
if wx.Platform == '__WXGTK__':
...
a bit better than:
if '__WXGTK__' in wx.PlatformInfo:
...
BTW, wx.Platform allows you to do this:
if wx.Platform in ('__WXMAC__', '__WXMSW__'):
...
which is much better than:
if '__WXMAC__' in wx.PlatformInfo or '__WXMSW__' in wx.PlatformInfo:
...
Although with three major platforms that last example can of course be
rewritten as:
if '__WXGTK__' not in wx.PlatformInfo:
...
Thanks, Frank