Problems with Unicode

[code]
from wxPython import wx

if "unicode" in wx.PlatformInfo:
  print "unicode"
else:
  print "ansi"
[/code]

But got:

Traceback (most recent call last):
  File "toto.py", line 3, in ?
    if "unicode" in wx.PlatformInfo:
AttributeError: 'module' object has no attribute 'PlatformInfo'

That's a bug, the PlatformInfo object does not have an entry in the
reverse-renamer script. You'll be able to get to it from the new wx
pacakge namespace.

[alain]
Oh, I forgot... I don't understand what you mean by "reverse-renamer script"
nor "new wx package namespace".

Can you provide a short script (including the appropriate import statements)
that tests whether the version is use is a Unicode build or not?

Thx.
[/alain]

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org