feat(gui): update on save

This commit is contained in:
Kristofers Solo 2023-11-08 12:38:41 +02:00
parent faf9e48917
commit 027e4131be

View File

@ -54,6 +54,11 @@ class App(ctk.CTk):
book = Book(*values) book = Book(*values)
self.inventory.add(book) self.inventory.add(book)
popup.destroy() popup.destroy()
self.update()
submit_button = ctk.CTkButton(popup, text="Submit", command=submit) submit_button = ctk.CTkButton(popup, text="Submit", command=submit)
submit_button.grid(row=5, column=0, padx=10, pady=5) submit_button.grid(row=5, column=0, padx=10, pady=5)
def update(self):
self.data = self.inventory.list_all()
self.display_table()