[gcompris] play rhythm, removed random in background selection



commit 3eb6256422ceec1a62d07970597d7d608abd2b0f
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Mon Oct 1 23:47:31 2012 +0200

    play rhythm, removed random in background selection
    
    It is confusing to enter / leave an activity and see its
    background changing.

 src/play_rhythm-activity/play_rhythm.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/play_rhythm-activity/play_rhythm.py b/src/play_rhythm-activity/play_rhythm.py
index 2767911..4468444 100644
--- a/src/play_rhythm-activity/play_rhythm.py
+++ b/src/play_rhythm-activity/play_rhythm.py
@@ -92,7 +92,8 @@ dialogue to\nenable the sound."), None)
         goocanvas.Image(
             parent=self.rootitem,
             x=0, y=0,
-            pixbuf=gcompris.utils.load_pixmap('piano_composition/playActivities/background/' + str(randint(1, 6)) + '.jpg')
+            pixbuf = gcompris.utils.load_pixmap('piano_composition/playActivities/background/'
+                                                + str( level % 6 + 1) + '.jpg')
             )
 
         if hasattr(self, 'staff'):



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