From c8f0b798b239eb67f50a8a018c87a4c1106c2d20 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 26 Jun 2013 23:47:17 +0000 Subject: fixed some sharing issues --- (limited to 'TurtleArt/tacollaboration.py') diff --git a/TurtleArt/tacollaboration.py b/TurtleArt/tacollaboration.py index 84ad4db..26a21d7 100644 --- a/TurtleArt/tacollaboration.py +++ b/TurtleArt/tacollaboration.py @@ -279,22 +279,22 @@ class Collaboration(): ''' Set xy location so joiner can sync turtle positions. Should be used to sync positions after turtle drag. ''' self._tw.turtles.set_turtle(self._get_nick()) - if self._tw.turtles.get_active_turtle().pendown: + if self._tw.turtles.get_active_turtle().get_pen_state(): self.send_event('p|%s' % (data_to_string([self._get_nick(), False]))) put_pen_back_down = True else: put_pen_back_down = False self.send_event('x|%s' % (data_to_string( - [self._get_nick(), - [int(self._tw.turtles.get_active_turtle().get_xy()[0]), - int(self._tw.turtles.get_active_turtle().get_xy()[1])]]))) + [self._get_nick(), + [int(self._tw.turtles.get_active_turtle().get_xy()[0]), + int(self._tw.turtles.get_active_turtle().get_xy()[1])]]))) if put_pen_back_down: self.send_event('p|%s' % (data_to_string([self._get_nick(), True]))) self.send_event('r|%s' % (data_to_string( - [self._get_nick(), - int(self._tw.turtles.get_active_turtle().get_heading())]))) + [self._get_nick(), + int(self._tw.turtles.get_active_turtle().get_heading())]))) def _reskin_turtle(self, payload): if len(payload) > 0: -- cgit v0.9.1