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-14 10:58:14 (GMT)
committer Walther Neuper <neuper@neuper.(none)>2009-12-14 10:58:14 (GMT)
commit3fc089e3ffcad3f207c9623a380d4638d26a85f6 (patch)
tree32f72df791742c40cde0a13f3a470cec97146f6c
parent4704dbc793d3e133a4aaabcdaa020f86e2d2ec06 (diff)
renamed topic-->exerc in Collection
-rw-r--r--ReckonPrimer.activity/collection.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/ReckonPrimer.activity/collection.py b/ReckonPrimer.activity/collection.py
index c945d3c..504b867 100644
--- a/ReckonPrimer.activity/collection.py
+++ b/ReckonPrimer.activity/collection.py
@@ -28,7 +28,7 @@ class Collection:
#WN.LV [] ist die vorlaeufige Liste der errors ###########
self._display = display
self._coach = coach
- self._active_topic = None
+ self._active_exerc = None
def select(self, key):
""" Select an exercise by key.
@@ -78,17 +78,18 @@ class Collection:
_i = _i + 1
self.topic_box.show()
- def select_exerc_callback(self, widget, topic):
+ def select_exerc_callback(self, widget, exerc):
""" Callback telling the item from the collection selected. """
- if(self._active_topic == None):
- self._active_topic = topic
+ if(self._active_exerc == None):
+ self._active_exerc = exerc
print('in collection.select_exerc_callback, 422 self._sett=',
self._sett)
- self._coach.notify(('exerc-selected', topic))
- elif(self._active_topic == topic):
+ self._coach.notify(('exerc-selected', exerc))
+ elif(self._active_exerc == exerc):
pass
- elif(self._active_topic != topic):
- self._active_topic = topic
+ elif(self._active_exerc != exerc):
+ self._active_exerc = exerc
+ #self._display.switch_exercise()
#WN.LV the code below should go into display
self._display.settings_table.destroy()
self._display.settings_table = gtk.Table(15, 6, True)
@@ -101,5 +102,6 @@ class Collection:
self._display.table.attach(self._display.
table_with_start, 1, 2, 0, 5)
self._display.table_with_start.show()
- self._coach.notify(('exerc-selected', topic))
+
+ self._coach.notify(('exerc-selected', exerc))