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