From 5ac97501a38f9176da336a6a9ebf847ba3de1949 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 27 Jan 2010 16:55:10 +0000 Subject: fixed overlay sprite management --- (limited to 'TurtleArtActivity.py') diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py index 18e6f82..1cbe1ce 100644 --- a/TurtleArtActivity.py +++ b/TurtleArtActivity.py @@ -418,18 +418,18 @@ class TurtleArtActivity(activity.Activity): """ def _do_cartesian_cb(self, button): if self.tw.cartesian is True: - self.tw.overlay_shapes[0].hide() + self.tw.overlay_shapes['Cartesian'].hide() self.tw.cartesian = False else: - self.tw.overlay_shapes[0].set_layer(OVERLAY_LAYER) + self.tw.overlay_shapes['Cartesian'].set_layer(OVERLAY_LAYER) self.tw.cartesian = True def _do_polar_cb(self, button): if self.tw.polar is True: - self.tw.overlay_shapes[1].hide() + self.tw.overlay_shapes['polar'].hide() self.tw.polar = False else: - self.tw.overlay_shapes[1].set_layer(OVERLAY_LAYER) + self.tw.overlay_shapes['polar'].set_layer(OVERLAY_LAYER) self.tw.polar = True """ -- cgit v0.9.1