Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Need to Update Tk Widgets

by mawe (Hermit)
on Sep 01, 2004 at 19:56 UTC ( [id://387679]=note: print w/replies, xml ) Need Help??


in reply to Need to Update Tk Widgets

Hi!

I never used our, so all this looks a bit strange for me :-). Anyway, try the following:
Change this

our(@ratio, @ratiobox, @concentration, @wtPercent, @density, %chemname +); my (@concentrationbox, @densitybox, @wtpercentbox);
to this:
our(@ratio, @ratiobox, @concentration, @wtPercent, @density, %chemname +, @wtpercentbox); my (@concentrationbox, @densitybox);
And this:
map{$_->configure(-textvariable=>\$wtPercent[2])}@wtpercentbox;
to this:
map{$_->delete(0,'end')}@wtpercentbox; for my $i (0..$#wtpercentbox) { $wtpercentbox[$i]->insert('end',$wtPercent[$i]); }
It should work now (I hope so :-))

mawe

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://387679]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-18 14:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found