in reply to TK menu question
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); } );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: TK menu question
by hebes_99 (Acolyte) on Jan 30, 2006 at 15:34 UTC | |
by Argel (Prior) on Feb 04, 2006 at 00:01 UTC |