

def _current_page_changed(self, old, new):
    ' Called when the current page is changed. '
    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

dataset/ETHPy150Open enthought/pyface/pyface/wizard/wizard_controller.py WizardController._current_page_changed/original