GNOME Bugzilla – Bug 666871
registerKeystrokeListener() and deregisterKeystrokeListener() should accept the same argument types
Last modified: 2011-12-27 23:16:33 UTC
You can register and de-register event listeners using the same argument types.... I would have thought you could do the same with keystroke listeners. See sample and traceback below if you thought so as well. ;) ~~~~~~~~~~~~~~~~ import pyatspi def onKey(event): print "onKey: %s" % event masks = range(0,256) pyatspi.Registry.registerKeystrokeListener(onKey, mask=masks) pyatspi.Registry.deregisterKeystrokeListener(onKey, mask=masks) pyatspi.Registry.start() ~~~~~~~~~~~~~~~~ Traceback (most recent call last):
+ Trace 229341
pyatspi.Registry.deregisterKeystrokeListener(onKey, mask=masks)
Atspi.deregister_keystroke_listener (listener, key_set, mask, kind)
return info.invoke(*args, **kwargs)
Fixed in pyatspi head: 8d4ff5