Attempt to display the unicode character if running a unicode build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2005-02-03 22:36:38 +00:00
parent b843b628c9
commit 33a84aceab

View File

@ -234,6 +234,8 @@ class KeyLog(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin):
keyname = "Ctrl-%s" % chr(ord('A') + keycode-1)
else:
keyname = "\"%s\"" % chr(keycode)
elif "unicode" in wx.PlatformInfo:
keyname = "\"" + unichr(keycode) + "\""
else:
keyname = "unknown (%s)" % keycode