Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt
diff options
context:
space:
mode:
authorMarion <marion.zepf@gmail.com>2013-07-03 13:37:09 (GMT)
committer Marion <marion.zepf@gmail.com>2013-07-03 13:37:09 (GMT)
commit3db37b0d6803cee9eeee3967e3ba4c183fd25c92 (patch)
tree1a469b0b1cf37cfb7e540dab6c62d8ae0c131516 /TurtleArt
parent20795e5eb541fc5737b0f86b9328348416c227fd (diff)
add two methods to Turtle to get the coordinates independently of each other
Diffstat (limited to 'TurtleArt')
-rw-r--r--TurtleArt/taturtle.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/TurtleArt/taturtle.py b/TurtleArt/taturtle.py
index 030d58d..970b39a 100644
--- a/TurtleArt/taturtle.py
+++ b/TurtleArt/taturtle.py
@@ -698,6 +698,12 @@ class Turtle:
def get_xy(self):
return [self._x, self._y]
+
+ def get_x(self):
+ return self._x
+
+ def get_y(self):
+ return self._y
def get_heading(self):
return self._heading