feat(gui): update update method

This commit is contained in:
Kristofers Solo 2023-11-08 13:02:06 +02:00
parent dd7e7adf93
commit 2689dd180e

View File

@ -64,6 +64,9 @@ class App(ctk.CTk):
submit_button = ctk.CTkButton(popup, text="Submit", command=submit)
submit_button.grid(row=5, column=0, padx=self.PADX, pady=self.PADY)
def update(self):
def update(self, data=None) -> None:
if data:
self.data = data
else:
self.data = self.inventory.list_all()
self.display_table()