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))
# ------------------------------------------------------
评论列表
文章目录