KicadSolderTool.py 文件源码

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

项目:KicadSolderTool 作者: pioupus 项目源码 文件源码
def openFile(self, path=""):
        if path=="":
            fileName = QtGui.QFileDialog.getOpenFileName(self, self.tr("Open Kicad board File"),
                                                        self.currentPath, "*.kicad_pcb")[0]
        else:
            fileName = path

        if fileName!="":
            self.pcb_fileName = fileName
            QtCore.QSettings("./KicadSolderTool.ini",QtCore.QSettings.IniFormat).setValue("recent_file",fileName);
            self.transform_target_topleft_set = False
            self.transform_target_bottom_right_set = False
            svg_filename_top = fileName+'top.svg'
            svg_filename_bot = fileName+'bot.svg'
            kicad_handler.pcb_to_svg(fileName,svg_filename_top,svg_filename_bot )
            self.footprintlist = query_footprints.query_and_sort(fileName)
            self.showFile(svg_filename_top,svg_filename_bot)
            self.footprintlist_window = FootPrintList(self,self.footprintlist)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号