diff options
author | Walther Neuper <neuper@neuper.(none)> | 2009-12-13 12:43:03 (GMT) |
---|---|---|
committer | Walther Neuper <neuper@neuper.(none)> | 2009-12-13 12:43:03 (GMT) |
commit | e671e7baac3335222156c2c19af5e1f36887f395 (patch) | |
tree | 11154151b6029c0b608ccdf137e9b4bdb1c22447 | |
parent | 1ed0ccb13bbbaa37a1251651f46c1ae2d19370da (diff) |
self._display.topic_table.attach in collection
-rw-r--r-- | ReckonPrimer.activity/collection.py | 5 | ||||
-rwxr-xr-x | ReckonPrimer.activity/display.py | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ReckonPrimer.activity/collection.py b/ReckonPrimer.activity/collection.py index 787fc4b..a748cb0 100644 --- a/ReckonPrimer.activity/collection.py +++ b/ReckonPrimer.activity/collection.py @@ -15,7 +15,10 @@ class Collection: def define_coll_gui(self): """ Define gui-elements for presenting the collcetion. """ self.topic_box = gtk.HBox(True, 0) - self.topic_table.attach(self.topic_box, 0, 6, 0, 1) + self._display.topic_table.attach(self.topic_box, 0, 6, 0, 1) + + def set_coll_gui(self): + """ Set gui-elements according to Collection.data. """ _i = 0 for _t in topics: _i = _i + 1 diff --git a/ReckonPrimer.activity/display.py b/ReckonPrimer.activity/display.py index 4f1f215..7d0b577 100755 --- a/ReckonPrimer.activity/display.py +++ b/ReckonPrimer.activity/display.py @@ -388,7 +388,6 @@ class Display: self.correct_count = self.correct_count + 1 self.correct_counter.set_text(str(self.correct_count)) self.display_table.destroy() - def offer_coll_to_learner(self, topics): """TODO: get the users choice from buttons above the settings""" |