

def _set_pages(self, pages):
    ' Sets the pages in the wizard. '
    self._pages = pages
    if ((self.current_page is not None) and (self.current_page not in self._pages)):
        self.current_page = self._pages[0]
    else:
        self._update()
    return

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