def _current_page_changed(self, old, new):

        if old is not None:
            old.on_trait_change(self._on_page_complete, 'complete',remove=True)

        if new is not None:
            new.on_trait_change(self._on_page_complete, 'complete')

        self._update()

        return

    #### Dynamic ####
Called when the current page is changed.
dataset/ETHPy150Open enthought/pyface/pyface/wizard/wizard_controller.py/WizardController._current_page_changed