Page1_functions.py 文件源码

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

项目:pyry3d_chimera_extension 作者: mdobrychlop 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号