Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I need these menus to activate in order. Ie. the user MUST create a consensussub option_menuitems { # create the menu items for the Options menu. ############################################# [ [qw/command/, 'Create Consensus', qw/-accelerator Ctrl-c -comman +d/=> \&create_consensus], '', [qw/command/, 'View Text 1', qw/-accelerator Ctrl-i if ($consens +us_created==0){-state disabled} -command/=> \&view_text1], [qw/command/, 'View Text 2', qw/-accelerator Ctrl-r -command/=> +\&view_text2], ]; } # end of option_menuitems
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Tk Menus:Disabling and Re-enabling
by PodMaster (Abbot) on Dec 12, 2002 at 11:43 UTC | |
|
Re: Perl Tk Menus:Disabling and Re-enabling
by Tanalis (Curate) on Dec 12, 2002 at 11:56 UTC | |
by Anonymous Monk on Dec 12, 2002 at 12:48 UTC |