diff options
author | Walther Neuper <neuper@neuper.(none)> | 2009-12-13 11:49:24 (GMT) |
---|---|---|
committer | Walther Neuper <neuper@neuper.(none)> | 2009-12-13 11:49:24 (GMT) |
commit | ea0babcbe86de7052f138829462a7f92d72ce449 (patch) | |
tree | 621e162026d435bb01564e42180ec53d168d05d0 | |
parent | 7839e67f856ca4eef4ce89be6c311be89f006a0b (diff) |
Collection() --> Collection(self._dis)
-rw-r--r-- | ReckonPrimer.activity/collection.py | 7 | ||||
-rwxr-xr-x | ReckonPrimer.activity/session.py | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/ReckonPrimer.activity/collection.py b/ReckonPrimer.activity/collection.py index 95d7f8d..56a0a5f 100644 --- a/ReckonPrimer.activity/collection.py +++ b/ReckonPrimer.activity/collection.py @@ -4,11 +4,14 @@ from settings import Settings class Collection: - def __init__(self): + def __init__(self, display): self._sett = Settings() # these data should come from pickle (see code in Settings) self._data = [self._sett.get_setting('addsub_simp'), self._sett.get_setting('passten'), self._sett.get_setting('times_div')] + self._display = display - #def + def define_coll_gui(): + """ Define gui-elements for presenting the collcetion. """ + diff --git a/ReckonPrimer.activity/session.py b/ReckonPrimer.activity/session.py index 19be2f1..d673e22 100755 --- a/ReckonPrimer.activity/session.py +++ b/ReckonPrimer.activity/session.py @@ -21,7 +21,7 @@ class Session: self._author = Author() self._co.register(self, self._dis, self._learner) self._dis.register(self, self._co, self._learner) - self._collect = Collection() + self._collect = Collection(self._dis) self._co.create_exercises() #TODO.WN091101 replace by storing Exerc.s self._calcs = None #pop ! |