> root.change_attributes(event_mask = X.KeyPressMask) This asks X to send this application keypress events
> root.grab_key(keycode, X.AnyModifier, 1,X.GrabModeAsync, X.GrabModeAsync) This tells X to grab the keyboard if the given keycode is generated and any modifier is pressed, not to stop processing keyboard events, and not to stop processing pointer events. That's pretty safe, although I'm not sure if you'd need the modifier for your application. -- http://mail.python.org/mailman/listinfo/python-list