Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ReckonPrimer.activity/collection.py
diff options
context:
space:
mode:
Diffstat (limited to 'ReckonPrimer.activity/collection.py')
-rw-r--r--ReckonPrimer.activity/collection.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/ReckonPrimer.activity/collection.py b/ReckonPrimer.activity/collection.py
index ea7ff39..8c49451 100644
--- a/ReckonPrimer.activity/collection.py
+++ b/ReckonPrimer.activity/collection.py
@@ -55,8 +55,8 @@ class Collection:
TODO: define once at startup of RP ?"""
#WN.LV diesen Code ersetzen: collection_table.attach(self.colldata,...
self.topic_box = gtk.HBox(True, 0)
- self._display.collection_table.attach(self.topic_box, 0, 6, 0, 1)
- #self._display.collection_table.attach(self.topic_box, 0, 6, 5, 6)
+ #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, coll_data):
""" Set gui-elements according to Collection.data. """
@@ -83,11 +83,12 @@ class Collection:
def select_exerc_callback(self, widget, coll_key):
""" Callback telling the item from the collection selected. """
#WN.LV diesen Code ersetzen> statt 1..n fuer Listen kommt coll_key
+ print('in Collection.select_exerc_callback')
if(self._active_exerc == None):
# at startup
self._active_exerc = coll_key
self._display.set_select_exerc_semaphore(coll_key)
- self._coach.notify(('exerc-selected', coll_key))
+ #self._coach.notify(('exerc-selected', coll_key))
elif(self._active_exerc == coll_key):
# hit the same button once more
pass
@@ -96,5 +97,5 @@ class Collection:
self._active_exerc = coll_key
self._display.switch_exercise() # TODO rename
self._display.set_select_exerc_semaphore(coll_key)
- self._coach.notify(('exerc-selected', coll_key))
+ #self._coach.notify(('exerc-selected', coll_key))