[gcompris] braille_fun-activity, stop the animations when entering the help.



commit 8aba3996066869892de493462c1b4b12aada674d
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Wed Jul 18 01:05:19 2012 +0200

    braille_fun-activity, stop the animations when entering the help.

 src/braille_fun-activity/braille_fun.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/braille_fun-activity/braille_fun.py b/src/braille_fun-activity/braille_fun.py
index a7d9bdb..424823c 100644
--- a/src/braille_fun-activity/braille_fun.py
+++ b/src/braille_fun-activity/braille_fun.py
@@ -132,7 +132,7 @@ class Gcompris_braille_fun:
                              1,
                              True,
                              25000 + level * 9000,
-                             250,
+                             100,
                              goocanvas.ANIMATE_FREEZE)
 
       string = "abcdefghijklmnopqrstuvwxyz"
@@ -192,7 +192,7 @@ class Gcompris_braille_fun:
                                      1,
                                      True,
                                      30000 + level * 5000,
-                                     250,
+                                     100,
                                      goocanvas.ANIMATE_FREEZE )
 
       # To call a function when animation finishes
@@ -271,6 +271,8 @@ class Gcompris_braille_fun:
         self.root.props.visibility = goocanvas.ITEM_INVISIBLE
 
     if (self.board_paused):
+        self.verticalTextRoot.stop_animation()
+        self.planeroot.stop_animation()
         return
 
     self.reset_level()



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