(self)
| 69 | |
| 70 | |
| 71 | def SaveToFile(self): |
| 72 | if self.sessionfile == None: |
| 73 | file_path = filedialog.asksaveasfilename(defaultextension="."+self.fileext, |
| 74 | filetypes=[(self.fileext+" files", "*."+self.fileext), ("All files", "*.*")]) |
| 75 | self.sessionfile = file_path |
| 76 | else: |
| 77 | file_path = self.sessionfile |
| 78 | |
| 79 | if file_path: |
| 80 | self.data = self.extract_treeview_data("") |
| 81 | with open(file_path, 'w') as file: |
| 82 | json.dump(self.data, file, indent=4) |
| 83 | self.editor_gui.title("ArtGUI Definition Editior "+self.sessionfile) |
| 84 | |
| 85 | def SaveAs(self): |
| 86 | file_path = filedialog.asksaveasfilename(defaultextension="."+self.fileext, |
nothing calls this directly
no test coverage detected