Next / Previous / Contents / Shipman's homepage

12. PageTurner.__nextHandler(): Go to next page

This handler is called when the user presses the “Next page” button.

pageturner.py
# - - -   P a g e T u r n e r . _ _ n e x t H a n d l e r   - - -

    def __nextHandler ( self ):
        """Handle the 'Next page' button.

          [ if self.__pageNo < len(self.__pageList) ->
              self  :=  self displaying page (self.__pageNo+1)
            else -> I ]
        """
        if  self.__pageNo < len(self.__pageList):
            self.setPageNo ( self.__pageNo + 1 )