diff options
Diffstat (limited to 'ReckonPrimer.activity/display.py')
-rwxr-xr-x | ReckonPrimer.activity/display.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/ReckonPrimer.activity/display.py b/ReckonPrimer.activity/display.py index eb29102..d1c085d 100755 --- a/ReckonPrimer.activity/display.py +++ b/ReckonPrimer.activity/display.py @@ -258,7 +258,7 @@ class Display: def release_sett_callback(self, widget): """ Start calcs with these settings (probably updated). """ print('in display.release_sett_callback') - self._co.notify(('setting-done', self._ex._sett)) + self._co.settings_done(self._ex._sett) self.settings_table.hide() #self.collection_table.hide() self.feedback_table_show() @@ -300,7 +300,7 @@ class Display: self.errors = 0 #WN090518 ??? self.protocol(protok, self.errors, 'OK') self.destroy_box() - self.notify(('digit-done', None)) + self._learner.digit_done() elif(entry_text == ""): pass #otherwise feedback in protocol written twice: see entry.set_text("") below else: @@ -361,12 +361,6 @@ class Display: def finish_calc(self): self.stopwatch.stop() - - def notify(self, msg): - """only used by gtk""" - if msg[0] == 'digit-done': - self._learner.notify(('digit-done', None)) - def show_progress(self): self.progressbar.set_fraction(self.progressbar.get_fraction()+(float(1)/float(self.total_calcs))) self.correct_count = self.correct_count + 1 @@ -422,13 +416,13 @@ class Display: from Collection.select_exerc_callback. """ print('in display.finish_learner_coll_callback, _coll_key=', self._coll_key) if not(self._coll_key is None): - self._co.notify(('exerc-selected', self._coll_key)) + self._co.exercise_selected(self._coll_key) self.collection_table.hide() self.feedback_table_show() def switch_learner_to_setts(self, widget): """ Callback on sts_butt. asks the Coach if allowed. """ - self._co.notify(('switch-to-setts', self._coll_key)) + self._co.switch_to_settings(self._coll_key) self.collection_table.hide() def set_curr_exerc(self, exerc): |