Fix exit errors and add UI image placeholder to README

This commit is contained in:
2026-01-10 16:52:17 +01:00
parent b59dffc496
commit b05afb1cc8
2 changed files with 13 additions and 0 deletions

View File

@@ -42,6 +42,14 @@ class ExerciseDiaryApp(ctk.CTk):
# Default View
self.show_dashboard()
# Handle closing
self.protocol("WM_DELETE_WINDOW", self.on_close)
def on_close(self):
self.withdraw()
self.quit()
self.destroy()
def clear_main_frame(self):
for widget in self.main_frame.winfo_children():