Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ReckonPrimer.activity/coach.py
diff options
context:
space:
mode:
Diffstat (limited to 'ReckonPrimer.activity/coach.py')
-rwxr-xr-xReckonPrimer.activity/coach.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/ReckonPrimer.activity/coach.py b/ReckonPrimer.activity/coach.py
index 83d3623..1cb4234 100755
--- a/ReckonPrimer.activity/coach.py
+++ b/ReckonPrimer.activity/coach.py
@@ -7,10 +7,10 @@ from display import Display
class Coach:
""" The coach supervises the selection of exercises. """
- #print('in coach, class definition')
+ print('in coach, class definition')
def __init__(self):
- print("DEL do Coach.__init__")
+ #print("in coach.__init__")
self._ex = None # the learner can change the settings of _this_ exerc
def register(self, sess, dis, collect, learner):
@@ -27,13 +27,12 @@ class Coach:
def notify(self, (msg, data)):
"""called by the observed objects"""
- print("in coach.notify: msg=, data=", (msg, data))
+ #print("in coach.notify: msg=, data=", (msg, data))
if msg == 'setting-done': # from display
self._ex.update_setting(data)
self._learner.notify((msg, self._ex))
elif msg == 'exerc-selected': # from collection
self._ex = self._collect.select(data)
- print('in coach.notify(exerc-selected), 93 self._ex._sett=',
- self._ex._sett)
+ #print('in coach.notify(exerc-selected), self._ex._sett=',self._ex._sett)
self._dis.offer_setting(self._ex)