[gcompris] play piano, removed random in background selection



commit 2b66e6d9c37b486f277447f11a97d4630494f66d
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Mon Oct 1 23:34:39 2012 +0200

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

 src/play_piano-activity/play_piano.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/play_piano-activity/play_piano.py b/src/play_piano-activity/play_piano.py
index c3077c5..730791a 100644
--- a/src/play_piano-activity/play_piano.py
+++ b/src/play_piano-activity/play_piano.py
@@ -91,7 +91,7 @@ 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]