Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tawindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r--TurtleArt/tawindow.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index bdea860..02a0469 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -1560,19 +1560,19 @@ class TurtleArtWindow():
''' Is this a remote turtle? '''
if name == self.nick:
return False
- if hasattr(self, 'remote_turtles') and \
- name in self.remote_turtles:
+ if hasattr(self, 'remote_turtle_dictionary') and \
+ name in self.remote_turtle_dictionary:
return True
return False
- def label_remote_turtle(self, name):
+ def label_remote_turtle(self, name, colors=['#A0A0A0', '#C0C0C0']):
''' Add a label to remote turtles '''
turtle = self.turtles.get_turtle(name)
if turtle is not None:
turtle.label_block = Block(self.block_list,
self.sprite_list, 'turtle-label', 0, 0,
- 'label', [], 1.0,
- colors=['#A0A0A0', '#C0C0C0'])
+ 'label', [], 1.0 / self.scale,
+ colors)
turtle.label_block.spr.set_label(name)
turtle.show()