def goto_page(self, index=None): if index is None: index = dialogs.goto_page_dlg(self.mw, self.app.current_doc) if index is None: return if index >= 0: self.app.current_doc.goto_page(index)
def goto_page(self, index=None): if index is None: index = dialogs.goto_page_dlg(self.mw, self.app.current_doc) if index is None:return if index >= 0: self.app.current_doc.goto_page(index)