Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ReckonPrimer.activity/display.py
diff options
context:
space:
mode:
Diffstat (limited to 'ReckonPrimer.activity/display.py')
-rwxr-xr-xReckonPrimer.activity/display.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/ReckonPrimer.activity/display.py b/ReckonPrimer.activity/display.py
index 2db90f6..c2d8e90 100755
--- a/ReckonPrimer.activity/display.py
+++ b/ReckonPrimer.activity/display.py
@@ -10,6 +10,8 @@ from sugar.graphics import style
from sugar.activity import activity
from views.rhs_view_manager import RHSViewManager
+# from views.feedback_view import FeedbackView
+
class Display:
"""
@@ -94,20 +96,20 @@ class Display:
self.collection_table = gtk.Table(14, 9, True)
# self.feedback_view = Feedback(self, 42) # TODO totoal_number_calcs
# self.feedback_table = self.feedback_view.table
- __rhs_view_manager = RHSViewManager()
+ self.__rhs_view_manager = RHSViewManager()
# 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(__rhs_view_manager, 1, 2, 0, 5)
+ self.table.attach(self.__rhs_view_manager, 1, 2, 0, 5)
# show all tables, scrolled_window already shown above
#self.settings_table_show() # treat uniformly <>!
#self.collection_table.show() # treat uniformly !
#self.feedback_table.show() # treat uniformly !
- __rhs_view_manager.show('feedback')
+ self.__rhs_view_manager.show('feedback')
self.table.show() # since all other tables have been inserted
@@ -175,6 +177,8 @@ class Display:
prepares for calculations from 1 setting.
for instance, a calculation might be on 1 ore more lines.
"""
+ self.__rhs_view_manager.show()
+
print("in display.init_calc")
# make empty lines such that all calcs are entered at bottom
for i in range(1,21):
@@ -199,7 +203,7 @@ class Display:
def protocol_generated_calcs(self, calculations, change):
print("DEBUG: in display.protocol_generated_calcs")
end_iterator = self.log_buffer.get_end_iter()
- self.log_buffer.insert_with_tags_by_name(end_iterator, "\n---------- " + change + " ----------" , "fixxxme!" )
+ self.log_buffer.insert_with_tags_by_name(end_iterator, "\n---------- " + change + " ----------")
for c in calculations:
end_iterator = self.log_buffer.get_end_iter()
@@ -210,7 +214,7 @@ class Display:
to_format[2] + " " + \
to_format[3] + " " + \
to_format[4]
- self.log_buffer.insert_with_tags_by_name(end_iterator, "\n" + printable_calc, "fixxxme!" )
+ self.log_buffer.insert_with_tags_by_name(end_iterator, "\n" + printable_calc )
mark = self.log_buffer.create_mark(None, end_iterator, True)
self.log_view.scroll_mark_onscreen(mark)