guibot.location module¶
Simple class to hold screen location data.
SUMMARY¶
..note:: Unless this class becomes more useful for the extra OOP abstraction it might get deprecated in favor of a simple (x, y) tuple.
INTERFACE¶
- class guibot.location.Location(xpos: int = 0, ypos: int = 0)[source]¶
Bases:
objectSimple location on a 2D surface, region, or screen.
- property x: int¶
Getter for readonly attribute.
- Returns:
x coordinate of the location
- property y: int¶
Getter for readonly attribute.
- Returns:
y coordinate of the location
- property coords: tuple[int, int]¶
Getter for readonly attributes.
- Returns:
tuple of (x, y) coordinates of the location