diff options
author | José 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) |
commit | e5763dd9972f3d5f2f9e580d32510522ac83923e (patch) | |
tree | 2785141cdc2dbd7004587d84402e6a7345b6de8b /view.py | |
parent | e39007a9c8dab6f3dea126a2e0ebc75b9de44fa8 (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.py | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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) |