PCBassignModel.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:FreeCAD-PCB 作者: marmni 项目源码 文件源码
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))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号