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