Author: johannes
Date: 2006-01-30 03:39:47 -0600 (Mon, 30 Jan 2006)
New Revision: 8147

Modified:
   trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py
Log:
Use unicode character for _keypress events


Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py        2006-01-30 
08:12:25 UTC (rev 8146)
+++ trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py        2006-01-30 
09:39:47 UTC (rev 8147)
@@ -27,6 +27,7 @@
 from gnue.forms.uidrivers.wx26.widgets import _base
 from gnue.forms.input import GFKeyMapper
 from gnue.forms.input.GFKeyMapper import vk
+from gnue.common.apps import i18n
 
 
 # =============================================================================
@@ -185,8 +186,8 @@
       if command:
         self._request (command, triggerName = args)
 
-      elif keycode < 256 and (chr (keycode) in string.printable or 
keycode>127):
-        self._keypress (chr (keycode))
+      elif keycode < wx.WXK_START:
+        self._keypress (unichr (keycode))
 
       else:
         event.Skip ()



_______________________________________________
Commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to