[gcompris] braille fun: fixed remaining display when the activity exits.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris] braille fun: fixed remaining display when the activity exits.
- Date: Tue, 6 Sep 2011 20:23:31 +0000 (UTC)
commit 57522a4b740a8b07b1ac5658de591df9913965ca
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Tue Sep 6 22:22:15 2011 +0200
braille fun: fixed remaining display when the activity exits.
src/braille_fun-activity/braille_fun.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/braille_fun-activity/braille_fun.py b/src/braille_fun-activity/braille_fun.py
index 584c565..c10f962 100644
--- a/src/braille_fun-activity/braille_fun.py
+++ b/src/braille_fun-activity/braille_fun.py
@@ -67,6 +67,7 @@ class Gcompris_braille_fun:
gcomprisBoard.disable_im_context = True
def start(self):
+ self.reseted = False
# Set the buttons we want in the bar
gcompris.bar_set(gcompris.BAR_LEVEL)
gcompris.bar_location(300,-1,0.6)
@@ -222,16 +223,21 @@ class Gcompris_braille_fun:
gcompris.bonus.display(gcompris.bonus.WIN,gcompris.bonus.SMILEY)
def animationFinished(self, item, status):
+ if self.reseted:
+ return
+ print "animationFinished"
if (self.counter != self.gcomprisBoard.level) :
self.gamewon = False
gcompris.bonus.display(gcompris.bonus.LOOSE,gcompris.bonus.SMILEY)
def end(self):
+ self.reseted = True
# Remove the root item removes all the others inside it
self.root.remove()
self.map_rootitem.remove()
self.horizontalTextRoot.remove()
self.verticalTextRoot.remove()
+ gcompris.score.end()
def ok(self):
pass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]