I think you can register a callback for the WM_DELETE_WINDOW property that shuts down gracefully. I don't have my example code with me, but it should be in the Perl/Tk book. Something like:
$toplevel->protocol( WM_DELETE_WINDOW, \&end_gracefully );In reply to Re: Ending an application gracefully
by chromatic
in thread Ending an application gracefully
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |