edifice.Window.will_unmount

Window.will_unmount()[source]

Callback function that is called when the component will unmount.

Override if you need to clean up some state, e.g. stop a timer, close a file.