Attachment 'helloworld2.py'

Download

   1 #!/usr/bin/python
   2 import pyatspi
   3 
   4 def listener(e):
   5     obj = e.source
   6     app = obj.getApplication()
   7     if app.name != "evolution":
   8         return
   9 
  10     print e
  11 
  12 pyatspi.Registry.registerEventListener(
  13     listener,
  14     "object:state-changed:focused",
  15     "object:state-changed:selected")
  16 pyatspi.Registry.start()

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:33, 972.1 KB) [[attachment:A11yBugTriaging.pdf]]
  • [get | view] (2021-02-25 09:41:33, 0.2 KB) [[attachment:helloworld1.py]]
  • [get | view] (2021-02-25 09:41:33, 0.3 KB) [[attachment:helloworld2.py]]
  • [get | view] (2021-02-25 09:41:33, 140.6 KB) [[attachment:wkgtk-a11y.png]]
 All files | Selected Files: delete move to page copy to page

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