Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArtActivity.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArtActivity.py')
-rw-r--r--TurtleArtActivity.py8
1 files changed, 4 insertions, 4 deletions
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
"""