I want to run the command when I erase the
tk.Tk() window, you can overwrite
_del__, but if you do so in
Toplevel, it will run when the main window is turned off.
I think it's okay to make a separate button myself, but can't you run it with the delete button on the title bar?
I was able to use the following description.
© 2023 OneMinuteCode. All rights reserved.