~thomir-deactivatedaccount/autopilot/trunk-make-click-call-more-pedantic

« back to all changes in this revision

Viewing changes to autopilot/input/_common.py

  • Committer: Thomi Richards
  • Date: 2014-02-26 19:13:39 UTC
  • mfrom: (406.2.39 autopilot)
  • Revision ID: thomi.richards@canonical.com-20140226191339-689x4coi2bchzhy4
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
 
28
28
def get_center_point(object_proxy):
29
 
    """Get the center point of an object, searching for several different ways
30
 
    of determining exactly where the center is.
 
29
    """Get the center point of an object.
 
30
 
 
31
    It searches for several different ways of determining exactly where the
 
32
    center is.
 
33
 
 
34
    :raises ValueError: if `object_proxy` has the globalRect attribute but it
 
35
        is not of the correct type.
 
36
    :raises ValueError: if `object_proxy` doesn't have the globalRect
 
37
        attribute, it has the x and y attributes instead, but they are not of
 
38
        the correct type.
 
39
    :raises ValueError: if `object_proxy` doesn't have any recognised position
 
40
        attributes.
31
41
 
32
42
    """
33
43
    try: