~chris.gagnon/xpresser/xpresser-with-emulate-click-and-drag

« back to all changes in this revision

Viewing changes to xpresser/xutils.py

  • Committer: Gustavo Niemeyer
  • Date: 2010-11-08 14:30:20 UTC
  • mfrom: (6.1.2 xpresser)
  • Revision ID: gustavo@niemeyer.net-20101108143020-4pmjc9kkeaua0hz5
Merging xutils.right_click() support and test, by Brian Murray.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
def click(x, y):
32
32
    pyatspi.Registry.generateMouseEvent(x, y, pyatspi.MOUSE_B1C)
33
33
 
 
34
def right_click(x, y):
 
35
    pyatspi.Registry.generateMouseEvent(x, y, pyatspi.MOUSE_B3C)
 
36
 
34
37
def hover(x, y):
35
38
    pyatspi.Registry.generateMouseEvent(x, y, pyatspi.MOUSE_ABS)
36
39