From 4b11d0e4def98b7ca45976aa64c9b5085ec53f2a Mon Sep 17 00:00:00 2001 From: romanschenk37 <84532681+romanschenk37@users.noreply.github.com> Date: Tue, 15 Mar 2022 08:14:51 +0100 Subject: [PATCH] =?UTF-8?q?Event=20EM=5FDELETE=5FWINDOWS=20hinzugef=C3=BCg?= =?UTF-8?q?t.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Main.py b/Main.py index a301bdc..cbd0d98 100644 --- a/Main.py +++ b/Main.py @@ -248,6 +248,7 @@ def command_exit(): root = tkinter.Tk() +root.protocol("WM_DELETE_WINDOW", command_exit) root.wm_title("Sonnendach") mainText = tkinter.Label(root, text=outputtext, width=80) mainText.grid(row=1, column=1, padx=10, pady=3)