commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r6064 - in trunk/gnue-forms/src/uidrivers: gtk2 wx


From: reinhard
Subject: r6064 - in trunk/gnue-forms/src/uidrivers: gtk2 wx
Date: Sat, 24 Jul 2004 08:13:31 -0500 (CDT)

Author: reinhard
Date: 2004-07-24 08:13:30 -0500 (Sat, 24 Jul 2004)
New Revision: 6064

Modified:
   trunk/gnue-forms/src/uidrivers/gtk2/common.py
   trunk/gnue-forms/src/uidrivers/wx/common.py
Log:
Buttons and checkboxes now can handle requestKEYPRESS events perfectly.


Modified: trunk/gnue-forms/src/uidrivers/gtk2/common.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/gtk2/common.py       2004-07-24 12:37:30 UTC 
(rev 6063)
+++ trunk/gnue-forms/src/uidrivers/gtk2/common.py       2004-07-24 13:13:30 UTC 
(rev 6064)
@@ -94,16 +94,6 @@
   elif command:
     action = events.Event ('request%s' % command)
 
-  elif gfObject._type == 'GFButton':
-    action = events.Event ('buttonActivated', gfObject)
-
-  elif gfObject.style == 'checkbox' and gfObject._type == 'GFEntry':
-    # <space> <=> <click>
-    if keycode == gtk.keysyms.Space:
-      action = events.Event ('requestTOGGLECHKBOX')
-    else:
-      pass
-
   if action is not None:
     # Add the gfObject's _form to the outgoing event
     # rather than every event in the function

Modified: trunk/gnue-forms/src/uidrivers/wx/common.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx/common.py 2004-07-24 12:37:30 UTC (rev 
6063)
+++ trunk/gnue-forms/src/uidrivers/wx/common.py 2004-07-24 13:13:30 UTC (rev 
6064)
@@ -256,16 +256,6 @@
     elif command:
       action = events.Event('request%s' % command)
 
-    elif object._type == 'GFButton':
-      action = events.Event('buttonActivated',object)
-
-    elif object.style == 'checkbox' and object._type == 'GFEntry':
-      # <space> <=> <click>
-      if keycode == 32:
-          action = events.Event('requestTOGGLECHKBOX')
-      else:
-          # maybe some background error message here
-          pass
     else:
       try:
         char = chr(keycode)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]