diff options
author | Walther Neuper <neuper@neuper.(none)> | 2009-12-13 15:00:33 (GMT) |
---|---|---|
committer | Walther Neuper <neuper@neuper.(none)> | 2009-12-13 15:00:33 (GMT) |
commit | 68597107c7b5df51d62ca6e564769fc66f50d2cc (patch) | |
tree | 0a2c6be1b0a4298dccc3da9418df0c1dcbd827bd | |
parent | ececf7d3de1752a80317c8a6b8beb304138e4112 (diff) |
renaming topic-->exercise
-rwxr-xr-x | ReckonPrimer.activity/coach.py | 4 | ||||
-rw-r--r-- | ReckonPrimer.activity/collection.py | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/ReckonPrimer.activity/coach.py b/ReckonPrimer.activity/coach.py index 7c6c026..19ee1f7 100755 --- a/ReckonPrimer.activity/coach.py +++ b/ReckonPrimer.activity/coach.py @@ -75,9 +75,9 @@ class Coach: self._ex.update_setting(data) self._update_exs(self._ex) self._learner.notify((msg, self._ex)) - elif msg == 'new-topic': + elif msg == 'exerc-selected': self._ex = self.get_ex(data) - print('in Coach.notify(new-topic), 93 self._ex._sett=', + print('in Coach.notify(exerc-selected), 93 self._ex._sett=', self._ex._sett) self._dis.offer_setting(self._ex) diff --git a/ReckonPrimer.activity/collection.py b/ReckonPrimer.activity/collection.py index e9a1d69..ac57d1e 100644 --- a/ReckonPrimer.activity/collection.py +++ b/ReckonPrimer.activity/collection.py @@ -44,19 +44,19 @@ class Collection: self.image.set_from_file("img/times_div.jpg") self.button.set_image(self.image) - self.button.connect("clicked", self.topic_select_callback, _t) + self.button.connect("clicked", self.select_exerc_callback, _t) self.topic_box.pack_start(self.button) self.button.show() self.topic_box.show() - def topic_select_callback(self, widget, topic): + def select_exerc_callback(self, widget, topic): """callback: get the users choice from buttons above the settings""" if(self._active_topic == None): self._active_topic = topic - print('in collection.topic_select_callback, 422 self._sett=', + print('in collection.select_exerc_callback, 422 self._sett=', self._sett) - self._coach.notify(('new-topic', topic)) + self._coach.notify(('exerc-selected', topic)) elif(self._active_topic == topic): pass elif(self._active_topic != topic): @@ -73,5 +73,5 @@ class Collection: self._display.table.attach(self._display. table_with_start, 1, 2, 0, 5) self._display.table_with_start.show() - self._coach.notify(('new-topic', topic)) + self._coach.notify(('exerc-selected', topic)) |