diff options
Diffstat (limited to 'ReckonPrimer.activity/extimesdiv.py')
-rwxr-xr-x | ReckonPrimer.activity/extimesdiv.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ReckonPrimer.activity/extimesdiv.py b/ReckonPrimer.activity/extimesdiv.py index acf42e9..1ef6dea 100755 --- a/ReckonPrimer.activity/extimesdiv.py +++ b/ReckonPrimer.activity/extimesdiv.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# (c) Martin Neppel 2009 import gtk import pygtk @@ -33,7 +32,6 @@ class ExTimesDiv(Exercise): 'shuffle_inner': True, # shuffle only 1st (inner) iteration 'cut-max' : True # cut set of all calcs down to MAX } - self._calcs = self._generate_calcs() def format(self, (calc, linepos)): """format the calc for display, prepare overlays for input""" @@ -70,10 +68,6 @@ class ExTimesDiv(Exercise): random.shuffle(_calcs) return _calcs -# def count(self): -# """TODO""" -# return len(self._calcs) - def define_buttons(self): """buttons for this setting, which is specific for TimesDiv""" self.label = gtk.Label("2")
@@ -392,9 +386,8 @@ class ExTimesDiv(Exercise): _calcs.append((_c, 5)) else: for _i in range(1,11): - print('in Generate.tim_div, (j,i)=',(_j, _i)) + #print('in Generate.tim_div, (j,i)=',(_j, _i)) if dic == '*': - #_c = [to_str_99(_i),'*',str(_j*10),'=',to_str_99(_i*_j*10)] _c = [to_str_99(_i),'*',str(_j),'=',to_str_99(_i*_j)] elif dic == '*commute': _c = [str(_j),'*',to_str_99(_i),'=',to_str_99(_i*_j)] |