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-13 12:43:03 (GMT)
committer Walther Neuper <neuper@neuper.(none)>2009-12-13 12:43:03 (GMT)
commite671e7baac3335222156c2c19af5e1f36887f395 (patch)
tree11154151b6029c0b608ccdf137e9b4bdb1c22447
parent1ed0ccb13bbbaa37a1251651f46c1ae2d19370da (diff)
self._display.topic_table.attach in collection
-rw-r--r--ReckonPrimer.activity/collection.py5
-rwxr-xr-xReckonPrimer.activity/display.py1
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"""