'Assign callback to update the corresponding widget\'s progress
bar after each generated rule. Callback is used to ensure that
the progress bar is always accessed correctly (additional
widgets may however use the generated learner).'

def set_progress_advance_callback(self, f):

    self.progress_advance_callback = f
