chimni has asked for the wisdom of the Perl Monks concerning the following question:
my $sv_menu = $menubar->Menubutton( -text => "Sv", -activebackground => 'blue', -activeforeground => 'white', -tearoff => 0, -menuitems => [ [ Button => '~Conf', -command => \&hello, -accelerator => '<Ctrl-c>' ], [ Button => "~Utility", -command => \&ello , -accelerator => '<Ctrl-u>' ], ["separator" => " "], ] )->pack(-side => 'left');
How do i go about enabling the edit menu in a subroutine in which i have checked that a file has been selected
As always ,ur input is appreciatededited: Wed Jul 30 13:58:20 2003 by jeffa - reformatted whitespace in code, removed opening pre tag
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl/TK: enabling a disable menu item
by busunsl (Vicar) on Jul 30, 2003 at 06:29 UTC | |
|
Re: Perl/TK: enabling a disable menu item
by bobn (Chaplain) on Jul 30, 2003 at 07:05 UTC | |
|
Re: Perl/TK: enabling a disable menu item
by chimni (Pilgrim) on Jul 30, 2003 at 07:10 UTC | |
by bobn (Chaplain) on Jul 30, 2003 at 07:57 UTC | |
|
Re: Perl/TK: enabling a disable menu item
by chimni (Pilgrim) on Jul 31, 2003 at 04:22 UTC |