Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tacollaboration.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-06-26 23:47:17 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-06-26 23:47:17 (GMT)
commitc8f0b798b239eb67f50a8a018c87a4c1106c2d20 (patch)
treeb109e76bd97f1b095e517409a7678fe6c86eb016 /TurtleArt/tacollaboration.py
parent2aa89e82f096b341615432eda111559cc157c778 (diff)
fixed some sharing issues
Diffstat (limited to 'TurtleArt/tacollaboration.py')
-rw-r--r--TurtleArt/tacollaboration.py12
1 files changed, 6 insertions, 6 deletions
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: