def save_full_model_to_file(self, full_model):
save_file_full_path = asksaveasfilename(defaultextension = "", filetypes = [("PDB","*.pdb")], parent=pymod.main_window)
if save_file_full_path != "":
# Moves the saved file to the path chosen by the user.
try:
old_path = full_model.original_file_path
os.rename(old_path, save_file_full_path)
except:
title = "File Error"
message = "Could not save the alignment file to path: %s" % (save_file_full_path)
self.show_error_message(title, message)
评论列表
文章目录