I have a script that uses the Text widget to edit text files. When the window is closing ( \'close\' icon clicked) I want to check if an amended file is unsaved.
I ha