Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tacanvas.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-03-14 01:54:12 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-03-14 01:54:12 (GMT)
commitbde0306a2345bddb991f8107c809136b6b0f5868 (patch)
treedf9b53c63b2e9e9b83b21bc2c35cab91ac8476c0 /TurtleArt/tacanvas.py
parente728322cd798fa7c2a2bc121695dbab2075fa175 (diff)
add a label to the remote turtles (experimental); fix bug that prevented colors being set for remote turtles on resume
Diffstat (limited to 'TurtleArt/tacanvas.py')
-rw-r--r--TurtleArt/tacanvas.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/TurtleArt/tacanvas.py b/TurtleArt/tacanvas.py
index dea9ed6..05c4936 100644
--- a/TurtleArt/tacanvas.py
+++ b/TurtleArt/tacanvas.py
@@ -707,7 +707,11 @@ class TurtleGraphics:
self.seth(0, False)
self.setxy(0, 0, False, pendown=False)
self.tw.active_turtle.set_pen_state(True)
- self.tw.active_turtle = self.tw.turtles.get_turtle(k, False)
+ elif colors is not None:
+ self.tw.active_turtle = self.tw.turtles.get_turtle(k, False)
+ self.tw.active_turtle.set_turtle_colors(colors)
+ else:
+ self.tw.active_turtle = self.tw.turtles.get_turtle(k, False)
self.tw.active_turtle.show()
tx, ty = self.tw.active_turtle.get_xy()
self.xcor, self.ycor = self.screen_to_turtle_coordinates(tx, ty)