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.
- property x¶
Getter for readonly attribute.
- Returns:
x coordinate of the location
- Return type:
int
- property y¶
Getter for readonly attribute.
- Returns:
y coordinate of the location
- Return type:
int