[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8149 - trunk/gnue-forms/src/uidrivers/wx26/widgets
From: |
johannes |
Subject: |
[gnue] r8149 - trunk/gnue-forms/src/uidrivers/wx26/widgets |
Date: |
Mon, 30 Jan 2006 06:50:30 -0600 (CST) |
Author: johannes
Date: 2006-01-30 06:50:29 -0600 (Mon, 30 Jan 2006)
New Revision: 8149
Modified:
trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py
Log:
Refined keyhandling - needs more improvements ...
Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py 2006-01-30
09:42:29 UTC (rev 8148)
+++ trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py 2006-01-30
12:50:29 UTC (rev 8149)
@@ -93,7 +93,8 @@
size = (self.itemWidth, (lines * cellH) - (cellH - offset * 2))
flags = wx.TE_MULTILINE
- newWidget = wx.TextCtrl (event.container, -1, '', pos, size, flags)
+ newWidget = wx.TextCtrl (event.container, -1, '', pos, size,
+ wx.TE_PROCESS_TAB | flags)
newWidget.Connect (-1, -1, wx.wxEVT_SET_FOCUS, self.__setFocus)
newWidget.Connect (-1, -1, wx.wxEVT_CHAR, self.__keypress)
@@ -187,6 +188,15 @@
if command:
self._request (command, triggerName = args)
+ # This is a bit hackish, but on windows, the keycode and unicode keycode
+ # for function keys is different; anyway, we want to replace this with a
+ # better and cleaner solution soon
+ elif '__WXMSW__' in wx.PlatformInfo:
+ if unikey == keycode:
+ self._keypress (unichr (unikey))
+ else:
+ event.Skip ()
+
elif unikey:
self._keypress (unichr (unikey))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8149 - trunk/gnue-forms/src/uidrivers/wx26/widgets,
johannes <=