Attachment 'simple_at.py'
Download 1 #!/usr/bin/env python
2
3 REGISTRY_IID = "OAFIID:Accessibility_Registry:1.0"
4 TYPELIB_NAME = "Accessibility"
5
6 # import ORBit and bonobo first (required)
7 import ORBit, bonobo
8 # initialize the ORB
9 orb = ORBit.CORBA.ORB_init()
10 # get a reference to the gnome Accessibility registry
11 registry = bonobo.activation.activate_from_id(REGISTRY_IID, 0, 0)
12 if registry is None:
13 raise RuntimeError('Could not activate:', REGISTRY_IID)
14 # generate Python code for the Accessibility module from the IDL
15 ORBit.load_typelib(TYPELIB_NAME)
16
17 # import the generated Accessibility module
18 import Accessibility, Accessibility__POA
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.