[wxPython-users] LCD vs CRT Monitors Issues (!)
Alexei Vinidiktov
alexei.vinidiktov at gmail.com
Thu Nov 1 09:17:49 PDT 2007
Andrea Gavana пишет:
>> AttributeError: 'unicode' object has no attribute '_title'
>
> That's a bug in FlatMenu: on line 266, try to replace the following line:
>
> if type(titleOrMenu) == type(""):
>
> With this line:
>
> if isinstance(titleOrMenu, basestring):
>
> And it should work... I didn't test it, as I don't have the unicode
> version here, but please let me know if you encounter any problem.
>
Now unicode strings seem to work, but not completely.
Using wx.SYS_DEFAULT_GUI_FONT, as it seems, instructs Windows to use the
MS Sans Serif font which is not Unicode, and thus the unicode characters
which are not part of the system default code page (in my case Cyrillic
and Latin) are not displayed correctly in the menu.
If I change wx.SYS_DEFAULT_GUI_FONT back to wx.SYS_DEFAULT_GUI_FONT, all
the characters are displayed correctly, but then again appears the font
rendering issue. By the way, when the form appears there is no rendering
issue, but I begin to see it when I hover my mouse over the menu bar.
I'm on Windows XP Pro SP2, wxPython 2.8.6.1, Python 2.5.1.
--
Alexei Vinidiktov
More information about the wxpython-users
mailing list