def set_current_page(self, name): number = indexed_items(self._pages)[name] Notebook.set_current_page(self, number)
def remove_page(self, name): print self.pages number = indexed_items(self.pages)[name] self.nbook.remove_page(number) del self.pages[number]
def remove_page(self, name): number = indexed_items(self._pages)[name] Notebook.remove_page(self, number) del self._pages[number] self._set_pages()