From: Robin Dunn Date: Thu, 3 Feb 2005 22:36:38 +0000 (+0000) Subject: Attempt to display the unicode character if running a unicode build X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/33a84aceab50a5acda1aed296365d87fe27eabfd 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 --- diff --git a/wxPython/demo/KeyEvents.py b/wxPython/demo/KeyEvents.py index 36eb764fa6..180dd59001 100644 --- a/wxPython/demo/KeyEvents.py +++ b/wxPython/demo/KeyEvents.py @@ -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