Hi all,Note that you can use the bonobo.activation.query() method, rather than forking activation-client to activate objects. I simply used activation-client in my examples during the talk to demonstrate that the bonobo bindings weren't doing anything behind the scenes to load up IDL.
I'm trying to use PyORBit to duplicate some of the functionality of AT-poke (the GNOME accessibility query tool). I haven't found any documentation on how to use CORBA, much less CORBA with Python. So far I've used orbit-idl-2 to process the Accessibility.idl file included with AT-SPI, and created what I believe is an imodule (a .so file that I can place in ORBIT_TYPELIB_PATH). I can then use ORBit.load_typelib('Accessibility') to load it.
Then, from reading the IDLs, it looks like I want to get an
Accessible_Desktop instance, and then call methods on that such as
getChildCount(). How do I get one of those? The example at
http://www.daa.com.au/~james/talks/guadec2003/pyorbit/slide13.html
uses activation-client to find the IOR for a running Nautilus instance,
but I can't figure out how to use that to get me an IOR for an
Accessible_Desktop. Am I on the right path?
From the look of it, to make use of the accessibility framework, you need to activate the a11y registry. The query string for that would look something like this:
repo_ids.has("IDL:Accessibility/Registry:1.0")
You can then get references to the Accessibility.Desktop objects using the registry's getDesktop(n) operation (the getDesktopCount() operation will tell you how many desktops are available).
James.
-- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
