def loadDatasheet(self):
''' load datasheet of selected package '''
url = str(self.datasheetPath.text()).strip()
if len(url):
if url.startswith("http://") or url.startswith("https://") or url.startswith("www."):
QtGui.QDesktopServices().openUrl(QtCore.QUrl(url))
else:
QtGui.QDesktopServices().openUrl(QtCore.QUrl("file:///{0}".format(url), QtCore.QUrl.TolerantMode))
评论列表
文章目录