]> git.saurik.com Git - wxWidgets.git/commitdiff
Attempt to display the unicode character if running a unicode build
authorRobin Dunn <robin@alldunn.com>
Thu, 3 Feb 2005 22:36:38 +0000 (22:36 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 3 Feb 2005 22:36:38 +0000 (22:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/KeyEvents.py

index 36eb764fa678282e05288c75ec03103476de6ff9..180dd59001aae22b206393e9af68685d9abd0aa7 100644 (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