[gcompris] place your satellite, improved a text message.



commit 54059f9383d7d5f8bfaf517482755d6aab8f0355
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Thu Oct 4 23:47:18 2012 +0200

    place your satellite, improved a text message.

 .../place_your_satellite.py                        |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/src/place_your_satellite-activity/place_your_satellite.py b/src/place_your_satellite-activity/place_your_satellite.py
index 5f505e7c..b1b3684 100644
--- a/src/place_your_satellite-activity/place_your_satellite.py
+++ b/src/place_your_satellite-activity/place_your_satellite.py
@@ -65,7 +65,10 @@ class Gcompris_place_your_satellite:
       x = gcompris.BOARD_WIDTH/2 - 50 - (self.gcomprisBoard.level * 10),
       y = gcompris.BOARD_HEIGHT/2 - 50 - (self.gcomprisBoard.level * 10))
 
-    self.instructions()
+    self.instructions(_('Click anywhere on the screen to place the satellite '
+                        'at a distance from the planet.') + "\n" +
+                      _('Then click on the satellite and drag a line that sets '
+                        'the speed of the satellite') )
     self.satellite = Satellite(self, self.rootitem, self.gcomprisBoard.level)
     self.speed = Speed(self.satellite, self.rootitem)
 
@@ -106,7 +109,7 @@ class Gcompris_place_your_satellite:
     self.end()
     self.start()
 
-  def instructions(self):
+  def instructions(self, message):
     # Instructions button to begin activity
     self.text = goocanvas.Text(
       parent = self.rootitem,
@@ -114,11 +117,9 @@ class Gcompris_place_your_satellite:
       y = 103,
       fill_color = "white",
       anchor = gtk.ANCHOR_CENTER,
-      alignment = pango.ALIGN_CENTER,
-      text = _('1. Click anywhere on the screen to place the satellite'
-               '\n at the required distance from the sun '
-               '\n 2. Click on the satellite and drag the line to set'
-               '\n the speed of the satellite'))
+      alignment = pango.ALIGN_LEFT,
+      width = 500,
+      text = message )
     self.text.connect('button_press_event', self.ready_event)
     bounds = self.text.get_bounds()
     gap = 20



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]