diff options
author | Walter 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) |
commit | bde0306a2345bddb991f8107c809136b6b0f5868 (patch) | |
tree | df9b53c63b2e9e9b83b21bc2c35cab91ac8476c0 /TurtleArt/tacollaboration.py | |
parent | e728322cd798fa7c2a2bc121695dbab2075fa175 (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/tacollaboration.py')
-rw-r--r-- | TurtleArt/tacollaboration.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/TurtleArt/tacollaboration.py b/TurtleArt/tacollaboration.py index 4a4d1fe..4955777 100644 --- a/TurtleArt/tacollaboration.py +++ b/TurtleArt/tacollaboration.py @@ -218,6 +218,7 @@ class Collaboration(): self._tw.turtle_dictionary = {nick: colors} # Add new turtle for the joiner. self._tw.canvas.set_turtle(nick, colors) + self._tw.label_remote_turtle(nick) # Sharer should send turtle dictionary. if self.initiating: event_payload = data_to_string(self._tw.turtle_dictionary) @@ -232,6 +233,7 @@ class Collaboration(): colors = self._tw.turtle_dictionary[nick] # add new turtle for the joiner self._tw.canvas.set_turtle(nick, colors) + self._tw.label_remote_turtle(nick) self.waiting_for_turtles = False def _draw_pixbuf(self, payload): |