diff options
author | Walther Neuper <neuper@neuper.(none)> | 2009-12-13 13:03:04 (GMT) |
---|---|---|
committer | Walther Neuper <neuper@neuper.(none)> | 2009-12-13 13:03:04 (GMT) |
commit | be2454cb03f6cb3079114a41333596e5bb22be1d (patch) | |
tree | c287032a0977834be261c754930e76352d2b74fa | |
parent | e671e7baac3335222156c2c19af5e1f36887f395 (diff) |
before new call collection.offer_coll_to_learner
-rw-r--r-- | ReckonPrimer.activity/collection.py | 6 | ||||
-rwxr-xr-x | ReckonPrimer.activity/display.py | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/ReckonPrimer.activity/collection.py b/ReckonPrimer.activity/collection.py index a748cb0..0356f5a 100644 --- a/ReckonPrimer.activity/collection.py +++ b/ReckonPrimer.activity/collection.py @@ -14,13 +14,15 @@ class Collection: def define_coll_gui(self): """ Define gui-elements for presenting the collcetion. """ + #WN.LV diesen Code ersetzen !!!!! self.topic_box = gtk.HBox(True, 0) self._display.topic_table.attach(self.topic_box, 0, 6, 0, 1) - def set_coll_gui(self): + def set_coll_gui(self, data): """ Set gui-elements according to Collection.data. """ + #WN.LV diesen Code ersetzen !!!!! _i = 0 - for _t in topics: + for _t in ['addsub_simp', 'passten', 'times_div']: _i = _i + 1 self.button = gtk.Button() self.image = gtk.Image() diff --git a/ReckonPrimer.activity/display.py b/ReckonPrimer.activity/display.py index 7d0b577..7f1e76c 100755 --- a/ReckonPrimer.activity/display.py +++ b/ReckonPrimer.activity/display.py @@ -238,7 +238,7 @@ class Display: ### START BUTTON END ### self.current_exercise = ex #WN.LV either drop this or self._ex - print('in Display.offer_setting, 241 self._sett=', self._sett) + print('in display.offer_setting, 241 self._sett=', self._sett) self.current_exercise.define_buttons() self.current_exercise.set_buttons(self._sett) @@ -391,6 +391,8 @@ class Display: def offer_coll_to_learner(self, topics): """TODO: get the users choice from buttons above the settings""" +# define_coll_gui() +# set_coll_gui() self.topic_box = gtk.HBox(True, 0) self.topic_table.attach(self.topic_box, 0, 6, 0, 1) _i = 0 |