mainwindow.py 文件源码

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

项目:hypersim 作者: redPanther 项目源码 文件源码
def readConfig(self,layout_file, layout_type="hyperion"):
            opc_map = {'opc_xy' : (0,1),'opc_xz' : (0,2),'opc_yz' : (1,2) }

            try:
                if layout_type == "hyperion":
                    self.readConfig_hyperion(layout_file)
                elif layout_type in opc_map:
                    self.readConfig_opc(layout_file, opc_map[layout_type][0], opc_map[layout_type][1])
                else:
                    print("unknown type of config file")
                    exit(1)
            except Exception as e:
                tkMessageBox.showerror("Open Config File", "Failed to open '%s' file \n'%s'\n%s" % (self.layout_type, self.layout_file, e))

    # ------------------------------------------------------
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号