Merge lp:~cwayne/xpresser/xpresser-double-click into lp:~niemeyer/xpresser/trunk
Proposed by
Chris Wayne
Status: | Merged |
---|---|
Merged at revision: | 10 |
Proposed branch: | lp:~cwayne/xpresser/xpresser-double-click |
Merge into: | lp:~niemeyer/xpresser/trunk |
Diff against target: |
188 lines (+68/-6) 4 files modified
xpresser/tests/test_xp.py (+41/-3) xpresser/tests/test_xutils.py (+14/-3) xpresser/xp.py (+10/-0) xpresser/xutils.py (+3/-0) |
To merge this branch: | bzr merge lp:~cwayne/xpresser/xpresser-double-click |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gustavo Niemeyer | Pending | ||
Review via email: mp+85175@code.launchpad.net |
Description of the change
Add support for double clicking.
To post a comment you must log in.
Reviewers: mp+85175_ code.launchpad. net,
Message:
Please take a look.
Description:
Added double click funcitonality
https:/ /code.launchpad .net/~cwayne18/ xpresser/ xpresser- double- click/+ merge/85175
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/5485056/
Affected files:
M xpresser/xp.py
M xpresser/xutils.py
Index: xpresser/xp.py
xp.right_ click(x, y)
xutils. right_click( *self._ compute_ focus_point( args)) click(" image-name" ) click(image_ match) double_ click(* self._compute_ focus_point( args))
=== <email address hidden> >
<email address hidden>
=== modified file 'xpresser/xp.py'
--- xpresser/xp.py 2010-11-08 14:38:23 +0000
+++ xpresser/xp.py 2011-12-09 18:35:34 +0000
@@ -76,6 +76,16 @@
"""
+
+ def double_click(self, *args):
+ '''Double clicks over the position specified by arguments
+
+ The following examples show valid ways of specifying te position:
+ xp.double_
+ xp.double_
+ xp.double_click(x, y)
+ '''
+ xutils.
def hover(self, *args):
"""Hover over the position specified by the provided arguments.
Index: xpresser/xutils.py xutils. py' Registry. generateMouseEv ent(x, y, pyatspi.MOUSE_B3C)
=== <email address hidden> >
<email address hidden>
=== modified file 'xpresser/
--- xpresser/xutils.py 2010-11-04 22:14:59 +0000
+++ xpresser/xutils.py 2011-12-09 18:35:34 +0000
@@ -34,6 +34,9 @@
def right_click(x, y):
pyatspi.
+def double_click(x, y): Registry. generateMouseEv ent(x, y, pyatspi.MOUSE_B1D) Registry. generateMouseEv ent(x, y, pyatspi.MOUSE_ABS)
+ pyatspi.
+
def hover(x, y):
pyatspi.