parameters: (self, page_name)
docstring: Destroy the page whose name is given in page_name.
docstring_summary: Destroy the page whose name is given in page_name.
docstring_tokens: Destroy the page whose name is given in page_name .
function: def remove_page(self, page_name):
          """Destroy the page whose name is given in page_name."""
          if not page_name in self.pages:
              raise KeyError("No such TabPage: '%s" % page_name)
  
          self._pages_order.remove(page_name)
  
          # handle removing last remaining, default, or currently shown page
          if len(self._pages_order) > 0:
              if page_name == self._default_page:
                  # set a new default page
                  self._default_page = self._pages_order[0]
          else:
              self._default_page = None
  
          if page_name == self._current_page:
              self.change_page(self._default_page)
  
          self._tab_set.remove_tab(page_name)
          page = self.pages.pop(page_name)
          page.frame.destroy()
function_tokens: def remove_page ( self , page_name ) : if not page_name in self . pages : raise KeyError ( "No such TabPage: '%s" % page_name ) self . _pages_order . remove ( page_name ) # handle removing last remaining, default, or currently shown page if len ( self . _pages_order ) > 0 : if page_name == self . _default_page : # set a new default page self . _default_page = self . _pages_order [ 0 ] else : self . _default_page = None if page_name == self . _current_page : self . change_page ( self . _default_page ) self . _tab_set . remove_tab ( page_name ) page = self . pages . pop ( page_name ) page . frame . destroy ( )