Advertisement
joanmarie

bogus window events

Aug 28th, 2011
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. # 1. Launch gtk3-demo's printing demo
  4. # 2. Launch this test script in a terminal
  5. # 3. Give focus back to the printing demo and repeatedly press Alt+R
  6.  
  7. import pyatspi
  8.  
  9. def listener(e):
  10. print '%s (%s, %s, %s)' % (e.type, e.detail1, e.detail2, e.any_data)
  11.  
  12. pyatspi.Registry.registerEventListener(listener, 'window')
  13. pyatspi.Registry.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement