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"))
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))
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))
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"))