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

@@ -8,6 +8,11 @@ A simple, motivating training diary focused on Calisthenics and basic health met
- **Progress Tracking:** Visual graphs for weight and waist trends.
- **Motivation:** Streak tracking to keep you consistent.
## Interface
![Exercise Diary Interface](assets/screenshot.png)
*(Note: Replace `assets/screenshot.png` with a real screenshot of the app)*
## Installation
1. **Clone the repository:**

View File

@@ -43,6 +43,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():
widget.destroy()