guibot.location module¶
SUMMARY¶
Simple class to hold screen location data.
..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=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
-
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
-