in reply to tk close window
Well, there's no X button.
The Ok button throws an exception: Undefined subroutine &main::do_something called ....
The Quit button closes the Dialog window.
Did you think the Quit button shut down the entire application? It doesn't.
Here's an Exit button you can add:
$mw->Button(-text => 'Exit', -command => sub { exit })->pack();
I added that just before my $answer = ... and successfully tested it.
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: tk close window
by fanticla (Scribe) on Nov 07, 2010 at 11:01 UTC | |
by kcott (Archbishop) on Nov 07, 2010 at 16:11 UTC |