keep track of opened, saved file to appropriately prompt save xml when needed, add Save As menu option

This commit is contained in:
Huy Pham 2020-03-04 14:15:02 -08:00
parent 7dee59e86e
commit f50c1e4db4
2 changed files with 3 additions and 0 deletions

View file

@ -57,6 +57,7 @@ class Menubar(tk.Menu):
)
self.app.bind_all("<Control-o>", self.menuaction.file_open_xml)
menu.add_command(label="Save", accelerator="Ctrl+S", command=self.save)
menu.add_command(label="Save As", command=self.menuaction.file_save_as_xml)
menu.add_command(label="Reload", underline=0, state=tk.DISABLED)
self.app.bind_all("<Control-s>", self.save)