[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r9370 - trunk/gnue-forms/src/uidrivers/wx
From: |
reinhard |
Subject: |
[gnue] r9370 - trunk/gnue-forms/src/uidrivers/wx |
Date: |
Fri, 9 Feb 2007 11:54:42 -0600 (CST) |
Author: reinhard
Date: 2007-02-09 11:54:42 -0600 (Fri, 09 Feb 2007)
New Revision: 9370
Modified:
trunk/gnue-forms/src/uidrivers/wx/common.py
Log:
Let the menu handle events that have not been assigned a command.
issue79 in-progress
Modified: trunk/gnue-forms/src/uidrivers/wx/common.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx/common.py 2007-02-09 17:36:44 UTC (rev
9369)
+++ trunk/gnue-forms/src/uidrivers/wx/common.py 2007-02-09 17:54:42 UTC (rev
9370)
@@ -241,18 +241,11 @@
# let listbox handle Space,PgUp,PgDn,Up,Down keys
if object._type == 'GFEntry' and object.style == 'listbox' and (keycode in
(32,312,313,317,319)):
- event.Skip()
+ pass
elif command:
- print command
action = events.Event('request%s' % command, triggerName = args)
-# elif event.ControlDown() or event.AltDown():
-# actionText = ""
-# actionText += event.ControlDown() and 'CTRL-' or ''
-# actionText += event.AltDown() and 'ALT-' or ''
-# actionText += '%s' % chr(keycode)
-# action = events.Event('requestUSERCOMMAND', triggerName = actionText)
else:
try:
char = chr(keycode)
@@ -269,6 +262,8 @@
# rather than every event in the function
action.__dict__.update({'_form':object._form})
self._eventProcessor(action)
+ else:
+ event.Skip()
#####################################################################
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r9370 - trunk/gnue-forms/src/uidrivers/wx,
reinhard <=