shortyfw06 has asked for the wisdom of the Perl Monks concerning the following question:
I've written some code using Tk but am now using Tkx. I've tried to make the necessary changes but am getting errors with new_optionmenu. Is the syntax below correct? If so, I might have some issues with my .pm files?... I'd appreciate any suggestions. Thanks!
#!usr/bin/perl use Tkx; use strict; use warnings; my $crit; my $mw = Tkx::widget->new("."); my @fail_crit = ( '1. Maximum Strain', '2. Maximum Stress', '3. Tsai-Hill', '4. Modified Tsai-Wu', '5. Hoffman', ); my $fail_crit_optmen = $mw -> new_optionmenu(-options=>\@fail_crit, -variable=> \$crit)->g_pack(-side=>'right'); Tkx::MainLoop();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tkx Optionmenu
by Anonymous Monk on Sep 14, 2012 at 02:25 UTC | |
by shortyfw06 (Beadle) on Sep 14, 2012 at 13:43 UTC | |
by Anonymous Monk on Sep 14, 2012 at 19:07 UTC |