parameters: (self, indx, text, selected=True, imgindex=-1)
return_statement: return True
docstring: Inserts a new page at the specified position.
  
          :param `indx`: specifies the position of the new page;
          :param `page`: specifies the new page;
          :param `text`: specifies the text for the new page;
          :param `select`: specifies whether the page should be selected;
          :param `imageId`: specifies the optional image index for the new page.
docstring_summary: Inserts a new page at the specified position.
docstring_tokens: Inserts a new page at the specified position .
function: def InsertPage(self, indx, text, selected=True, imgindex=-1):
          """
          Inserts a new page at the specified position.
  
          :param `indx`: specifies the position of the new page;
          :param `page`: specifies the new page;
          :param `text`: specifies the text for the new page;
          :param `select`: specifies whether the page should be selected;
          :param `imageId`: specifies the optional image index for the new page.
          """
  
          if selected:
  
              self._iPreviousActivePage = self._iActivePage
              self._iActivePage = len(self._pagesInfoVec)
  
          self._pagesInfoVec.insert(indx, PageInfo(text, imgindex))
  
          self.Refresh()
          return True
function_tokens: def InsertPage ( self , indx , text , selected = True , imgindex = - 1 ) : if selected : self . _iPreviousActivePage = self . _iActivePage self . _iActivePage = len ( self . _pagesInfoVec ) self . _pagesInfoVec . insert ( indx , PageInfo ( text , imgindex ) ) self . Refresh ( ) return True