guibot.location module

class guibot.location.Location(xpos=0, ypos=0)[source]

Bases: object

Simple location on a 2D surface, region, or screen.

__init__(xpos=0, ypos=0)[source]

Build a location object.

Parameters:
  • xpos (int) – x coordinate of the location
  • ypos (int) – y coordinate of the location
__str__()[source]

Provide a compact form for the location.

x

Getter for readonly attribute.

Returns:x coordinate of the location
Return type:int
y

Getter for readonly attribute.

Returns:y coordinate of the location
Return type:int