Dear All, I have written code to create 5 Entry widgets by using for loop, Now i want to capture values of each entry widget and print those values but now i am getting last entry box value only,remaining values are not getting.Kindly help me..
#! c:\perl\Bin use Tk; use Tk::LabFrame; $mw = MainWindow->new; for($i=0;$i<=5;$i++) { $j=$mw->Entry(-validate=>all,-validatecommand=>\&f)->pack(); } sub f { $i1=$j->get(); print $i1; } MainLoop;
In reply to Entry widget values are not getting by gocpon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |