From 027a88342e70367055f8ac2566cd2c3bb30d6011 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Tue, 15 Feb 2022 01:58:50 +0100 Subject: [PATCH] save window location and resolution on shutdown --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index f1d8600..953b939 100644 --- a/main.py +++ b/main.py @@ -252,4 +252,9 @@ def rebuild_menu(): rebuild_menu() +def handle_exit(): + set_configuration_value("window geometry", main_window.geometry()) + main_window.destroy() + +main_window.protocol("WM_DELETE_WINDOW", handle_exit) main_window.mainloop()