Fix exit errors and add UI image placeholder to README
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user