in reply to Need to Update Tk Widgets
I never used our, so all this looks a bit strange for me :-). Anyway, try the following:
Change this
to this:our(@ratio, @ratiobox, @concentration, @wtPercent, @density, %chemname +); my (@concentrationbox, @densitybox, @wtpercentbox);
And this:our(@ratio, @ratiobox, @concentration, @wtPercent, @density, %chemname +, @wtpercentbox); my (@concentrationbox, @densitybox);
to this:map{$_->configure(-textvariable=>\$wtPercent[2])}@wtpercentbox;
It should work now (I hope so :-))map{$_->delete(0,'end')}@wtpercentbox; for my $i (0..$#wtpercentbox) { $wtpercentbox[$i]->insert('end',$wtPercent[$i]); }
mawe
|
|---|