Debian Codegraph @

examples/tmenu

raw
1 #!perl -w
2 use strict;
3 use Tk;
4 my $mw = MainWindow->new;
5 my $menu = $mw->menu;
6 $menu->cascade(-label => "Added",-underline => 0, -menuitems => [
7 [Button => 'Exit', -underline => 1, -command => [destroy => $mw]],
8 ]);
9 $mw->Button(-text => "Press this button to Quit\nthe Appliation",
10 -command => [destroy => $mw])->pack;
11 MainLoop;