mirror of
https://github.com/kristoferssolo/LU-bookstore.git
synced 2025-10-21 18:00:34 +00:00
feat(gui): update update method
This commit is contained in:
parent
dd7e7adf93
commit
2689dd180e
@ -64,6 +64,9 @@ class App(ctk.CTk):
|
|||||||
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=self.PADX, pady=self.PADY)
|
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.data = self.inventory.list_all()
|
||||||
self.display_table()
|
self.display_table()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user