parameters: (self, page, image)
docstring: Sets the image index for the given page.
  
          :param integer `page`: the page index;
          :param integer `image`: an index into the image list which was set with :meth:`SetImageList`.
docstring_summary: Sets the image index for the given page.
docstring_tokens: Sets the image index for the given page .
function: def SetPageImage(self, page, image):
          """
          Sets the image index for the given page.
  
          :param integer `page`: the page index;
          :param integer `image`: an index into the image list which was set with :meth:`SetImageList`.
          """
  
          if page >= self._tabs.GetPageCount():
              return False
  
          if not isinstance(image, types.IntType):
              raise Exception("The image parameter must be an integer, you passed " \
                              "%s"%repr(image))
  
          if not self._imageList:
              raise Exception("To use SetPageImage you need to associate an image list " \
                              "Using SetImageList or AssignImageList")
  
          if image >= self._imageList.GetImageCount():
              raise Exception("Invalid image index (%d), the image list contains only" \
                              " (%d) bitmaps"%(image, self._imageList.GetImageCount()))
  
          if image == -1:
              self.SetPageBitmap(page, wx.NullBitmap)
              return
  
          bitmap = self._imageList.GetBitmap(image)
          self.SetPageBitmap(page, bitmap)
function_tokens: def SetPageImage ( self , page , image ) : if page >= self . _tabs . GetPageCount ( ) : return False if not isinstance ( image , types . IntType ) : raise Exception ( "The image parameter must be an integer, you passed " "%s" % repr ( image ) ) if not self . _imageList : raise Exception ( "To use SetPageImage you need to associate an image list " "Using SetImageList or AssignImageList" ) if image >= self . _imageList . GetImageCount ( ) : raise Exception ( "Invalid image index (%d), the image list contains only" " (%d) bitmaps" % ( image , self . _imageList . GetImageCount ( ) ) ) if image == - 1 : self . SetPageBitmap ( page , wx . NullBitmap ) return bitmap = self . _imageList . GetBitmap ( image ) self . SetPageBitmap ( page , bitmap )