Exemple #1
0
 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))
Exemple #2
0
 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))
Exemple #3
0
 def showDocumentation(self):
     subpath = "index.html"
     url = projecturl.getDocumentationUrl(subpath)
     qt.QDesktopServices.openUrl(qt.QUrl(url))
Exemple #4
0
 def help(self):
     logger.debug("Please, help")
     url = projecturl.get_documentation_url("man/pyFAI-integrate.html")
     qt.QDesktopServices.openUrl(qt.QUrl(url))
Exemple #5
0
 def help(self):
     logger.debug("Please, help")
     qt.QDesktopServices.openUrl(qt.QUrl(self.URL))
Exemple #6
0
 def __displayHelp(self):
     subpath = "usage/cookbook/calib-gui/index.html"
     url = projecturl.get_documentation_url(subpath)
     qt.QDesktopServices.openUrl(qt.QUrl(url))