in reply to Re: How to catch pushing the window "Exit" button in Perl/Tk?
in thread How to catch pushing the window "Exit" button in Perl/Tk?

>I'm not sure if this works on Windows, but on Linux, this disables or intercepts the window manager's close button.
>$mw->protocol('WM_DELETE_WINDOW' => sub {

>$mw->protocol('WM_DELETE_WINDOW' => \&myexit);

WoW! It does work on Windows too! Thanks a lot, guys!
  • Comment on Re^2: How to catch pushing the window "Exit" button in Perl/Tk?