Destroy a window in button action : MainWindow « GUI « Perl
- Perl
- GUI
- MainWindow
Destroy a window in button action
use Tk;
my $main = MainWindow->new;
$main->Button(-text => 'End',
-command => [$main => 'destroy']
)->pack;
MainLoop;
Related examples in the same category