Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalther Neuper <neuper@neuper.(none)>2009-12-15 09:26:32 (GMT)
committer Walther Neuper <neuper@neuper.(none)>2009-12-15 09:26:32 (GMT)
commit2dd3d1609a14d6c7ebfa7084b65eb10957cde3fa (patch)
tree6edfbdb56c1a38f22d3bcbdd1cb66ae45c60001b
parent4d0ce55f6e269a050563ea0eb795bcbeeda03ce7 (diff)
collect_table --> calc; new finish_learner_collect
-rw-r--r--ReckonPrimer.activity/collection.py2
-rwxr-xr-xReckonPrimer.activity/display.py6
2 files changed, 6 insertions, 2 deletions
diff --git a/ReckonPrimer.activity/collection.py b/ReckonPrimer.activity/collection.py
index 3c2120b..ea7ff39 100644
--- a/ReckonPrimer.activity/collection.py
+++ b/ReckonPrimer.activity/collection.py
@@ -58,7 +58,7 @@ class Collection:
self._display.collection_table.attach(self.topic_box, 0, 6, 0, 1)
#self._display.collection_table.attach(self.topic_box, 0, 6, 5, 6)
- def set_coll_gui(self):
+ def set_coll_gui(self, coll_data):
""" Set gui-elements according to Collection.data. """
#WN.LV diesen Code ersetzen !!!!!
_i = 0
diff --git a/ReckonPrimer.activity/display.py b/ReckonPrimer.activity/display.py
index fca2c58..1fbdee3 100755
--- a/ReckonPrimer.activity/display.py
+++ b/ReckonPrimer.activity/display.py
@@ -365,7 +365,8 @@ class Display:
def offer_coll_to_learner(self, collect):
"""TODO: get the users choice from buttons above the settings"""
collect.define_coll_gui()
- collect.set_coll_gui() # sets callbacks
+ collect.set_coll_gui(collect) # sets callbacks
+ self.finish_learner_collect() # set finish_learner_collect_butt + callb
def switch_exercise(self):
""" Another exercise has been selected. """
@@ -382,3 +383,6 @@ class Display:
def set_select_exerc_semaphore(self, coll_key):
""" Sets a semaphore for finish_collect_callback. """
self._coll_key = coll_key
+
+ def finish_learner_collect(self):
+ pass