def choosemap(self, maplist, initialdir):
p = Tkinter.Tk()
p.withdraw()
mappath = tkFileDialog.askopenfilename(
parent=p, initialdir=initialdir, title="Choose .map file",
filetypes=[("EM and SAXS shape descriptors", ".map"),
("EM and SAXS shape descriptors", ".mrc"),
("EM and SAXS shape descriptors", ".pdb"),
("EM and SAXS shape descriptors", ".ccp4")
]
)
if mappath != "" and mappath != ():
mapname = mappath.split("/")[-1]
maplist.settext("#0 "+mapname)
return mappath
Page1_functions.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录