Example #1
0
 def openHelp(self):
     localeShortName = getLocaleShortName()
     if localeShortName in ["ru", "uk"]:
         QDesktopServices.openUrl(
             QUrl("http://hub.qgis.org/projects/molusce/wiki"))
     else:
         QDesktopServices.openUrl(
             QUrl("http://hub.qgis.org/projects/molusce/wiki"))
Example #2
0
 def showQuickHelp(self):
   dir_name =  os.path.dirname(__file__)
   localeShortName = getLocaleShortName()
   guidePath = dir_name+ "/doc/" + localeShortName + "/QuickHelp.pdf"
   if os.path.isfile(guidePath):
       QDesktopServices.openUrl(QUrl.fromLocalFile(guidePath))
   else: # Try to see english documentation
     guidePath = dir_name+ "/doc/" + "en" + "/QuickHelp.pdf"
     QDesktopServices.openUrl(QUrl.fromLocalFile(guidePath))
Example #3
0
 def showQuickHelp(self):
     dir_name = os.path.dirname(__file__)
     localeShortName = getLocaleShortName()
     guidePath = dir_name + "/doc/" + localeShortName + "/QuickHelp.pdf"
     if os.path.isfile(guidePath):
         QDesktopServices.openUrl(QUrl.fromLocalFile(guidePath))
     else:  # Try to see english documentation
         guidePath = dir_name + "/doc/" + "en" + "/QuickHelp.pdf"
         QDesktopServices.openUrl(QUrl.fromLocalFile(guidePath))
Example #4
0
 def openHelp(self):
   localeShortName = getLocaleShortName()
   if localeShortName in [ "ru", "uk" ]:
     QDesktopServices.openUrl(QUrl("http://hub.qgis.org/projects/molusce/wiki"))
   else:
     QDesktopServices.openUrl(QUrl("http://hub.qgis.org/projects/molusce/wiki"))