smaclach has asked for the wisdom of the Perl Monks concerning the following question:
use Tk; my $mw = MainWindow->new( -title=> "Cancel Test"); example(); MainLoop; sub example { $mw->OnDestroy(sub{ $response = $mw->messageBox(-icon => 'question', -message => ' +Really Exit?', -title => 'Continue?', -type => 'OkCancel', -default = +> 'Ok'); print "Reply:$response\n"; $mw->break if $response eq 'Cancel';}) }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cancel close of mainwindow in Tk on Windows
by Anonymous Monk on Oct 11, 2007 at 23:18 UTC | |
by cadphile (Beadle) on Oct 11, 2007 at 23:55 UTC | |
|
Re: Cancel close of mainwindow in Tk on Windows
by cadphile (Beadle) on Oct 11, 2007 at 23:49 UTC |