I'm attaching a 20-line test script that raises the NO_IMPLEMENT error. When I run
it, I get this error:
Traceback (most recent call last):
File "testaccess.py", line 20, in ?
registry.registerGlobalEventListener(listener._this(), 'focus:')
CORBA.NO_IMPLEMENT
I'm trying to register a listener on all accessibility events and have a
Python method called when one of those events happens.
Any ideas?
Thanks,
--Tessa
#!/usr/bin/env python
import pygtk
pygtk.require('2.0')
import bonobo
import ORBit, CORBA
ORBit.load_typelib('Accessibility')
import Accessibility__POA
class MyListener(Accessibility__POA.EventListener):
def __init__(self):
Accessibility__POA.EventListener.__init__(self)
def notifyEvent(self, event):
print 'Event notified:', event
orb = CORBA.ORB_init()
registry = bonobo.activation.activate(
"repo_ids.has('IDL:Accessibility/Registry:1.0')")
listener = MyListener()
registry.registerGlobalEventListener(listener._this(), 'focus:')
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/