def register(self, max_iteration, title=''):
        caller = ProgressCaller(max_steps=max_iteration, title=title)
        caller.manager = self
        self.max_steps += max_iteration

        if self.use_ui:
            if not self.in_progress:
                self.create_dialog()
            else:
                # update the maximum
                self.dialog.setRange(0, self.max_steps)
                self.dialog.setValue(self.current_step)
            # self. center_window()

        # also store this
        self.callers.append(caller)
        return caller
registers a new caller
dataset/ETHPy150Open eoyilmaz/anima/anima/ui/progress_dialog.py/ProgressDialogManager.register