The code:
from tkinter import *
class GUI(Tk):
def __init__(self):
super().__init__()
self.protocol("WM_DELETE_WINDOW", self.closing)
def closing(self):
self.destroy()
But when closing the window, the program doesn't stop and that's what printed in the console:
while executing "21317232closing" (command for "WM_DELETE_WINDOW" window manager protocol)
What does that mean and is there a way to fix this?