Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ReckonPrimer.activity/display.py
diff options
context:
space:
mode:
Diffstat (limited to 'ReckonPrimer.activity/display.py')
-rwxr-xr-xReckonPrimer.activity/display.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/ReckonPrimer.activity/display.py b/ReckonPrimer.activity/display.py
index 3554b33..92fc7ee 100755
--- a/ReckonPrimer.activity/display.py
+++ b/ReckonPrimer.activity/display.py
@@ -257,7 +257,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()
@@ -299,7 +299,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:
@@ -360,12 +360,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
@@ -421,13 +415,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):