in reply to Problem refreshing TK window after file update

I'm still learning perl/Tk myself, but ran into something similar recently. I wasn't sure which "entry widgets" you were referring to, but could think of two things that may be of help for you. For both, I will refer to this example:

my $myscale = $mw->Scale( -from => 2, -to => ( $dx - 1 ), -orient => 'horizontal', -label => 'Drawn X:', -variable => \$a_dx )->grid();

First thing you may wish to look at is that several types of widgets have the property of being able to be associated to a variable reference (such as the -variable option above, or the -textvariable option for Entry widgets), so that (as I understand it) updating the contents of the variable results in an update of the value displayed for them.

Another thing you may want to look at the configure function for Tk widgets. For instance, say you have a scale object defined as follows: and you update $dx, and want the maximum scale for it to change as well. In that case, you could do the following:

$myscale->configure( -to => ($dx - 1) );
which would change the -to configuration item for that scale.

Hope that helps....

Update: (2004-04-30) - Reorganized order suggestions were presented, after re-reading and seeing that the original latter seemed potentially more applicable to the OP.