I want to run the command when I erase the Toplevel
window.
In 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.
<Toplevel>.protocol("WM_DELETE_WINDOW", <fnc>)
363 Logging Out with the Application Load Balancer and Authentication Using Cognito
365 FileNotFoundError in json: What is the difference between these two?
364 winget install-e --id Microsoft.WindowsSDK fails.
372 To find Python openpyxl value coordinates
354 JSON.parse fails even though there is no problem with the format.
© 2023 OneMinuteCode. All rights reserved.