diff options
author | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-21 21:15:55 (GMT) |
---|---|---|
committer | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-21 21:15:55 (GMT) |
commit | 77435259817eaea02efef119f8f1dd1465340687 (patch) | |
tree | bf676fd0ed72258606dd893715c91159a9b97bff | |
parent | 0ab0ae399c2a945fb3b13196b7001899b8fa2e98 (diff) |
Move answer status to the Quiz toolbar.
-rw-r--r-- | ConstellationsFlashCards.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ConstellationsFlashCards.py b/ConstellationsFlashCards.py index f99ceb0..6a3b11b 100644 --- a/ConstellationsFlashCards.py +++ b/ConstellationsFlashCards.py @@ -252,7 +252,7 @@ class ChartDisplay(Gtk.DrawingArea): if (cbq1.get_active() >= 0): name = cbq1.get_active_text() if (name == self.cname): - self.context.identifyobject.set_label(_("That is correct.")) + self.context.answer_status.set_text(_("That is correct.")) id = self.id score[id] = score[id] + self.points if (self.points == 5): @@ -264,7 +264,7 @@ class ChartDisplay(Gtk.DrawingArea): cbq1.set_sensitive(False) buttonq1.set_sensitive(False) else: - self.context.identifyobject.set_label(_("Sorry, that is not the correct name.")) + self.context.answer_status.set_text(_("Sorry, that is not the correct name.")) self.points = self.points - 2 if (self.points < 0): self.points = 0 @@ -707,6 +707,13 @@ class ConstellationsFlashCards(activity.Activity): label_container.show_all() self.quiz_toolbar.insert(buttonq1, -1) self.quiz_toolbar.insert(buttonq2, -1) + + label_container = Gtk.ToolItem() + self.answer_status = Gtk.Label(_("")) + label_container.add(self.answer_status) + label_container.show_all() + self.quiz_toolbar.insert(label_container, -1) + self.answer_status.show() buttonq1.show() buttonq2.show() |