def _set_pages(self, pages):
        """ Sets the pages in the wizard. """

        self._pages = pages

        # Make sure the current page is valid.
        # If the current page is None (i.e., the current page has
        # not been set yet), do not set it here. The current page will
        # get set when the wizard calls _show_page.
        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

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