def changePage(self, itab): if not self.canLoadHTML: return docName = self.tabNames[itab].replace(' ', '_') html = 'file:///' + osp.join(gww.CONFDIR, docName + '.html') html = re.sub('\\\\', '/', html) self.webView.load(qt.QUrl(html))
def _on_sphinx_html_ready(self): for name, node in csi.nodes.items(): docName = name.replace(' ', '_') fname = os.path.join(gww.CONFDIR, docName) + '.html' if not os.path.exists(fname): continue html = 'file:///' + fname html = re.sub('\\\\', '/', html) node.widget.helpFile = fname node.widget.help.load(qt.QUrl(html))
def showDocumentation(self): subpath = "index.html" url = projecturl.getDocumentationUrl(subpath) qt.QDesktopServices.openUrl(qt.QUrl(url))
def help(self): logger.debug("Please, help") url = projecturl.get_documentation_url("man/pyFAI-integrate.html") qt.QDesktopServices.openUrl(qt.QUrl(url))
def help(self): logger.debug("Please, help") qt.QDesktopServices.openUrl(qt.QUrl(self.URL))
def __displayHelp(self): subpath = "usage/cookbook/calib-gui/index.html" url = projecturl.get_documentation_url(subpath) qt.QDesktopServices.openUrl(qt.QUrl(url))