location

Classes to fulfill the roles of those described at
http://doc.sikuli.org/location.html
class python_sikuli_client.location.Location(remote, server_id, is_new=False, *args, **kwargs)[source]

Manages interaction with Sikuli’s Location, reflecting http://doc.sikuli.org/location.html#Location

above(dy)[source]

Get a new location which is dy pixels vertically above the current location.

Return type:int
Parameters:dy – int > 0
below(dy)[source]

Get a new location which is dy pixels vertically below the current location.

Return type:int
Parameters:dy – int > 0
getX()[source]

Get the respective attribute of the location.

Return type:int
getXY()[source]

get a tuple of the location as (int x, int y) :return: (int, int)

getY()[source]

Get the respective attribute of the location.

Return type:int
left(dx)[source]

Get a new location which is dx pixels horizontally to the left of the current location.

Return type:int
Parameters:dx – int > 0
offset(dx, dy)[source]

Get a new location which is dx and dy pixels away horizontally and vertically from the current location.

Parameters:
  • dx – int
  • dy – int
Return type:

Location

right(dx)[source]

Get a new location which is dx pixels horizontally to the right of the current location.

Return type:int
Parameters:dx – int > 0
setLocation(x, y)[source]

Set the location of this object to the specified coordinates.

Parameters:
  • x – int > 0
  • y – int > 0

Previous topic

globals

Next topic

match

This Page