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.py21
1 files changed, 17 insertions, 4 deletions
diff --git a/ReckonPrimer.activity/display.py b/ReckonPrimer.activity/display.py
index beb4c67..ba6ebf7 100755
--- a/ReckonPrimer.activity/display.py
+++ b/ReckonPrimer.activity/display.py
@@ -21,7 +21,7 @@ class Display:
Definition and manipulation of all GUI-elemts.
Exception (redesign?): def define_buttons in classes derived from Exercise.
"""
- print("DEL import Display")
+ print("in display, class definition")
def __init__(self, window):
self.errors = 0
@@ -238,7 +238,7 @@ class Display:
### START BUTTON END ###
self.current_exercise = ex #WN.LV either drop this or self._ex
- print('in display.offer_setting, 241 self._sett=', self._sett)
+ #print('in display.offer_setting, self._sett=', self._sett)
self.current_exercise.define_buttons()
self.current_exercise.set_buttons(self._sett)
@@ -272,7 +272,7 @@ class Display:
prepares for calculations from 1 setting.
for instance, a calculation might be on 1 ore more lines.
"""
- print("DEL do Display.init_calc")
+ print("in display.init_calc")
# make empty lines such that all calcs are entered at bottom
for i in range(1,21):
end_iterator = self.log_buffer.get_end_iter()
@@ -337,7 +337,7 @@ class Display:
"""display the lines of a calc with _ at all input positions"""
lino = 0
for li in lines:
- print('in Display.display_calc, line=', li)
+ #print('in Display.display_calc, line=', li)
self.create_entryline((lino, -1, 'dummy-dig', 'dummy-proterr', 'dummy-protok', li))
lino = lino + 1
@@ -393,3 +393,16 @@ class Display:
"""TODO: get the users choice from buttons above the settings"""
collect.define_coll_gui()
collect.set_coll_gui()
+
+ def switch_exercise(self):
+ """ Another exercise has been selected. """
+ self.settings_table.destroy()
+ self.settings_table = gtk.Table(15, 6, True)
+ self.table.attach(self.settings_table, 1, 2, 0, 5)
+ self.settings_table.show()
+
+ self.table_with_start.destroy()
+ self.table_with_start = gtk.Table(15, 6, True)
+ self.table.attach(self.table_with_start, 1, 2, 0, 5)
+ self.table_with_start.show()
+