gui.py 文件源码

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

项目:pyry3d_chimera_extension 作者: mdobrychlop 项目源码 文件源码
def openandsaveall(self):
        if len(self.complist) <= 1:
            tkMessageBox.showinfo(
                "PyRy3D info",
                "You must add at least two structures."
                )
        else:
            rly1 = True
            if Paths.mappath == "" or Paths.mappath == ():
                rly1 = tkMessageBox.askyesno(
                        "Warning",
                        "No shape descriptor provided. Continue?"
                        )

            if rly1 is True:
                rly2 = tkMessageBox.askyesno(
                        "Warning",
                        "This will close all opened models before loading new data. Continue?"
                        )
                if rly2 is True:
                    runCommand("close all")
                    P1F.opencommand(Paths.mappath, self.complist)
                    P1F.writeAllPDBs(Paths.temppath, Paths.mappath)
                    runCommand("windowsize 9999 9999")
                    self.open_button.configure(state="disabled")
                    self.dens_button.configure(state="disabled")
                    self.comp_button.configure(state="disabled")
                    self.clear_button.configure(state="disabled")
                    self.new_session_button.configure(state="normal")
                    self.notebook.tab(1).configure(state="normal")
                    self.notebook.tab(2).configure(state="normal")
                    self.notebook.tab(3).configure(state="normal")
                    self.notebook.tab(3).configure(state="normal")

    # ----- FUNCTIONS TRIGGERED BY WIDGETS ON THE --- SECOND PAGE ---
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号