parameters: (self, page)
return_statement: return True
docstring: Deletes the specified page, without deleting the associated window.
  
          :param `page`: an integer specifying the page to be removed.
          
          :note: The call to this function generates the page changing events.
docstring_summary: Deletes the specified page, without deleting the associated window.
docstring_tokens: Deletes the specified page without deleting the associated window .
function: def RemovePage(self, page):
          """
          Deletes the specified page, without deleting the associated window.
  
          :param `page`: an integer specifying the page to be removed.
          
          :note: The call to this function generates the page changing events.
          """
  
          if page >= len(self._windows):
              return False
  
          # Fire a closing event
          event = ImageNotebookEvent(wxEVT_IMAGENOTEBOOK_PAGE_CLOSING, self.GetId())
          event.SetSelection(page)
          event.SetEventObject(self)
          self.GetEventHandler().ProcessEvent(event)
  
          # The event handler allows it?
          if not event.IsAllowed():
              return False
  
          self.Freeze()
  
          # Remove the requested page
          pageRemoved = self._windows[page]
  
          # If the page is the current window, remove it from the sizer
          # as well
          if page == self.GetSelection():
              self._mainSizer.Detach(pageRemoved)
          
          # Remove it from the array as well
          self._windows.pop(page)
          self._mainSizer.Layout()
          self.ResizeTabArea()
          self.Thaw()
  
          self._pages.DoDeletePage(page)
  
          # Fire a closed event
          closedEvent = ImageNotebookEvent(wxEVT_IMAGENOTEBOOK_PAGE_CLOSED, self.GetId())
          closedEvent.SetSelection(page)
          closedEvent.SetEventObject(self)
          self.GetEventHandler().ProcessEvent(closedEvent)
          
          return True
function_tokens: def RemovePage ( self , page ) : if page >= len ( self . _windows ) : return False # Fire a closing event event = ImageNotebookEvent ( wxEVT_IMAGENOTEBOOK_PAGE_CLOSING , self . GetId ( ) ) event . SetSelection ( page ) event . SetEventObject ( self ) self . GetEventHandler ( ) . ProcessEvent ( event ) # The event handler allows it? if not event . IsAllowed ( ) : return False self . Freeze ( ) # Remove the requested page pageRemoved = self . _windows [ page ] # If the page is the current window, remove it from the sizer # as well if page == self . GetSelection ( ) : self . _mainSizer . Detach ( pageRemoved ) # Remove it from the array as well self . _windows . pop ( page ) self . _mainSizer . Layout ( ) self . ResizeTabArea ( ) self . Thaw ( ) self . _pages . DoDeletePage ( page ) # Fire a closed event closedEvent = ImageNotebookEvent ( wxEVT_IMAGENOTEBOOK_PAGE_CLOSED , self . GetId ( ) ) closedEvent . SetSelection ( page ) closedEvent . SetEventObject ( self ) self . GetEventHandler ( ) . ProcessEvent ( closedEvent ) return True