Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArtActivity.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-10-17 16:23:03 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-10-17 16:23:03 (GMT)
commit91e4e726536ead93dea2749c535480048043bc15 (patch)
treeb1f3c3d4e06dc4f7b653dce489003f3749442d3c /TurtleArtActivity.py
parent598ae9a19b6939706b220c0c5ea47bf7a533e1f3 (diff)
adjusting coord. graphics
Diffstat (limited to 'TurtleArtActivity.py')
-rw-r--r--TurtleArtActivity.py39
1 files changed, 21 insertions, 18 deletions
diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py
index 02449d4..4a672c1 100644
--- a/TurtleArtActivity.py
+++ b/TurtleArtActivity.py
@@ -178,7 +178,7 @@ class TurtleArtActivity(activity.Activity):
separator.show()
self.coordinates_label = \
- gtk.Label(_("(x,y): ") + "(0,0)")
+ gtk.Label(_("x") + " 0 " + _("y") + " 0 " + _("heading") + " 0")
self.coordinates_label.set_line_wrap(True)
self.coordinates_label.show()
self.coordinates_toolitem = gtk.ToolItem()
@@ -710,23 +710,6 @@ class TurtleArtActivity(activity.Activity):
self.step_button.set_icon("run-slowoff")
self.run_button.set_icon("run-fastoff")
- def _do_Cartesian_cb(self, button):
- if self.tw.Cartesian is True:
- tawindow.hide(self.tw.Cartesian_coordinates_spr)
- self.tw.Cartesian = False
- else:
- tawindow.setlayer(self.tw.Cartesian_coordinates_spr,700)
- self.tw.Cartesian = True
-
- def _do_polar_cb(self, button):
- if self.tw.polar is True:
- tawindow.hide(self.tw.polar_coordinates_spr)
- self.tw.polar = False
- else:
- tawindow.setlayer(self.tw.polar_coordinates_spr,700)
- self.tw.polar = True
-
-
""" Sample projects open dialog """
def _do_samples_cb(self, button):
tawindow.load_file(self.tw, True)
@@ -752,6 +735,26 @@ class TurtleArtActivity(activity.Activity):
self.recenter()
"""
+ Display coordinate grids
+ """
+ def _do_Cartesian_cb(self, button):
+ if self.tw.Cartesian is True:
+ tawindow.hide(self.tw.Cartesian_coordinates_spr)
+ self.tw.Cartesian = False
+ else:
+ tawindow.setlayer(self.tw.Cartesian_coordinates_spr,610)
+ self.tw.Cartesian = True
+
+ def _do_polar_cb(self, button):
+ if self.tw.polar is True:
+ tawindow.hide(self.tw.polar_coordinates_spr)
+ self.tw.polar = False
+ else:
+ tawindow.setlayer(self.tw.polar_coordinates_spr,610)
+ self.tw.polar = True
+
+
+ """
Either set up initial share...
"""
def _shared_cb(self, activity):