Updated: Changed "my $tk;" to "my %tk;"my %tk; $tk{top} = MainWindow->new(); $tk{menubar} = $tk{top}->Menu; $tk{top}->configure( -menu => $tk{menubar} ); $tk{menu_file} = $tk{menubar}->cascade( -label => '~File' ); $tk{menu_exit} = $tk{menubar}->command( -label => '~Exit', -command = +> sub { Tk::exit(0); } );
In reply to Re: TK menu question
by Argel
in thread TK menu question
by hebes_99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |