I'd guess that you are using Perl/Tk? In that case, I'd use a callback of the form
my($dismiss) = $root->Button ( -text => 'dismiss window', -command => sub{ $message->destroy; command();} );
-Mark
In reply to Re: closing window and running sub-routine
by kvale
in thread closing window and running sub-routine
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |