Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/view.py
diff options
context:
space:
mode:
authorJosé Darío Giménez <jgimenez@localhost.localdomain>2010-05-26 01:48:26 (GMT)
committer José Darío Giménez <jgimenez@localhost.localdomain>2010-05-26 01:48:26 (GMT)
commite5763dd9972f3d5f2f9e580d32510522ac83923e (patch)
tree2785141cdc2dbd7004587d84402e6a7345b6de8b /view.py
parente39007a9c8dab6f3dea126a2e0ebc75b9de44fa8 (diff)
The activity detects when the puzzle db is exhausted and show a message and the score of the Session.
There is a bug to be repaired: an atribute from the controller loses his value between events. Maybe there is a problem with the "serialization" of the object?
Diffstat (limited to 'view.py')
-rw-r--r--view.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/view.py b/view.py
index c1fa4c8..6059563 100644
--- a/view.py
+++ b/view.py
@@ -44,10 +44,13 @@ class View():
self.l1.show()
self.controller.activity.set_canvas(self.l1)
- def refreshQuestion(self):
- self.question.set_text(self.controller.session.currentPuzzle().question)
+ def refreshQuestion(self,question):
+ self.question.set_text(question)
self.question.show()
- def showAnswer(self,status):
- self.answer.set_text(status+' La respuesta correcta es:'+self.controller.session.currentPuzzle().answer)
+ def showAnswer(self,status,correctAnswer):
+ self.answer.set_text(status+' La respuesta correcta es: '+correctAnswer)
self.answer.show()
+
+ def hideAnswer(self):
+ self.answer.set_text(None)