From 2de8750d06fa9dba23bda081de57a89c464fc697 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Fri, 11 Feb 2011 01:25:50 +0000 Subject: running sugar detection --- diff --git a/TurtleArt/tacollaboration.py b/TurtleArt/tacollaboration.py index ae56b1e..2df923a 100644 --- a/TurtleArt/tacollaboration.py +++ b/TurtleArt/tacollaboration.py @@ -81,8 +81,7 @@ class Collaboration(): 'w' : self._set_pen_width, 'p' : self._set_pen_state, 'F' : self._fill_polygon, - 'P' : self._draw_pixbuf, - 'z' : self._clear + 'P' : self._draw_pixbuf } def _shared_cb(self, activity): @@ -335,7 +334,7 @@ class Collaboration(): def _get_colors(self): colors = None - if profile: + if self._tw.running_sugar: if profile.get_color() is not None: colors = profile.get_color().to_string() else: -- cgit v0.9.1