def delete_page(self): index = dialogs.delete_page_dlg(self.mw, self.app.current_doc) if index >= 0: self.app.current_doc.api.delete_page(index)
def delete_page(self): index = dialogs.delete_page_dlg(self.mw, self.app.current_doc) if index >= 0: self.app.current_doc.api.delete_page(index)