Destroy the main window:
use strict; use warnings; use Tk; my $mw = MainWindow->new; $mw->Button (-text => "Hello World!", -command => sub {$mw->destroy()} +)->pack; MainLoop; print "done with the GUI\n";
Prints:
done with the GUI
In reply to Re: Perl Tk-How to return from 'MainLoop'
by GrandFather
in thread Perl Tk-How to return from 'MainLoop'
by herby1620
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |