Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import pyatspi
- def listener(e):
- # Figure out the accessible name of the offending
- # app you're filing the bug about and replace 'foo'
- # with that name. Then uncomment out the next two lines.
- #if e.host_application.name != 'foo':
- # return
- print e
- pyatspi.Registry.registerEventListener(listener, 'object:state-changed', 'focus:')
- pyatspi.Registry.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement