Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tawindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'tawindow.py')
-rw-r--r--tawindow.py32
1 files changed, 31 insertions, 1 deletions
diff --git a/tawindow.py b/tawindow.py
index 6a585ad..b650e31 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -310,8 +310,9 @@ class TurtleArtWindow():
self._resize_skin(blk)
self.nop = 'pythonloaded'
+
"""
- Enter fulscreen mode
+ Enter fullscreen mode
"""
def set_fullscreen(self):
if self.running_sugar:
@@ -319,6 +320,35 @@ class TurtleArtWindow():
self.activity.recenter()
"""
+ Turn on/off Cartesian coordinates
+ """
+ def set_cartesian(self, flag):
+ if flag:
+ if self.coord_scale == 1:
+ self.overlay_shapes['Cartesian_labeled'].set_layer(
+ OVERLAY_LAYER)
+ else:
+ self.overlay_shapes['Cartesian'].set_layer(OVERLAY_LAYER)
+ self.cartesian = True
+ else:
+ if self.coord_scale == 1:
+ self.overlay_shapes['Cartesian_labeled'].hide()
+ else:
+ self.overlay_shapes['Cartesian'].hide()
+ self.cartesian = False
+
+ """
+ Turn on/off polar coordinates
+ """
+ def set_polar(self, flag):
+ if flag:
+ self.overlay_shapes['polar'].set_layer(OVERLAY_LAYER)
+ self.polar = True
+ else:
+ self.overlay_shapes['polar'].hide()
+ self.polar = False
+
+ """
Hide/show button
"""
def hideshow_button(self):