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.
  • [get | view] (2021-02-25 09:41:35, 2.0 KB) [[attachment:button_collection.py]]
  • [get | view] (2021-02-25 09:41:35, 7.0 KB) [[attachment:collection.scm]]
  • [get | view] (2021-02-25 09:41:35, 2.7 KB) [[attachment:firefox.py]]
  • [get | view] (2021-02-25 09:41:35, 1.8 KB) [[attachment:gcalc.py]]
  • [get | view] (2021-02-25 09:41:35, 6.0 KB) [[attachment:match-rule-test.scm]]
  • [get | view] (2021-02-25 09:41:35, 0.6 KB) [[attachment:simple_at.py]]
  • [get | view] (2021-02-25 09:41:35, 0.6 KB) [[attachment:simple_at.pyc]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.