Inset in av2 (before the line beginning with tkwait) the lines of script:
proc ValCh {a} {
global aList vList
;# get current index value for a within aList
set idx [lsearch $aList $a]
set va [.rc.fff.sub$idx.ent get]
send av [list reJig $va $a]
}
The procedure ValCh
Note that this procedure "ValCh" is the script that will be invoked as it is
the binding in each entry widget for the event
New or changed lines of script are highlighted.
Change the value for any of the configuration options and see the result. The
following shows the result of setting the background to Red.