From a2509a60dd11440d289a4e80883d47917a462c0f Mon Sep 17 00:00:00 2001 From: Walther Neuper Date: Mon, 14 Dec 2009 13:36:14 +0000 Subject: other minors --- diff --git a/ReckonPrimer.activity/collection.py b/ReckonPrimer.activity/collection.py index 4264400..bd8054a 100644 --- a/ReckonPrimer.activity/collection.py +++ b/ReckonPrimer.activity/collection.py @@ -51,10 +51,12 @@ class Collection: raise Exception() def define_coll_gui(self): - """ Define gui-elements for presenting the collcetion. """ + """ Define gui-elements for presenting the collection. + TODO: define once at startup of RP ?""" #WN.LV diesen Code ersetzen !!!!! 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, 0, 1) + self._display.collection_table.attach(self.topic_box, 0, 6, 5, 6) def set_coll_gui(self): """ Set gui-elements according to Collection.data. """ diff --git a/ReckonPrimer.activity/display.py b/ReckonPrimer.activity/display.py index 517897e..55fd6af 100755 --- a/ReckonPrimer.activity/display.py +++ b/ReckonPrimer.activity/display.py @@ -21,9 +21,9 @@ class Display: def __init__(self, window): self._permanent_gui_elements(window) self.errors = 0 + self._ex = None self._sett = None # setting updated by callbacks during input self.running = False # first round of calculations - self.active_topic = None def register(self, sess, co, learner): """register _after_ Session and Coach have been instantiated""" @@ -90,8 +90,8 @@ class Display: # Insert the 3 tables into the right half of the screen self.table.attach(self.settings_table, 1, 2, 0, 5) - self.table.attach(self.collection_table, 1, 2, 0, 5) - self.table.attach(self.feedback_table,1, 2, 0, 5) + self.table.attach(self.collection_table,1, 2, 0, 5) + self.table.attach(self.feedback_table, 1, 2, 0, 5) # show all tables, scrolled_window already shown above self.settings_table.show() @@ -248,9 +248,6 @@ class Display: end_iterator = self.log_buffer.get_end_iter() self.log_buffer.insert(end_iterator, "\n") self.log_view.scroll_mark_onscreen(self.log_buffer.get_insert()) - - - def destroy_box(self): self.calculation_box.destroy() -- cgit v0.9.1