I wrote a tk app that uses a hash to store all the -textvariable variables in the form ( eg -textvariable => \$CURRENT{form_field_name}. I use "store"/retrieve from the storable module to save, recall the hash when I want to redisplay the saved form, The problem is when recalled, nothing shows up in the form...
The hash used to store the form textvariable has the same address as the one I restore to and I can see the correct values in the hash but nothing updates in the form. My understanding is that it should be instantaneous when the textvariable is changed?The addresses of %CURRENT stored from and retrieved to are the same, the $CURRENT{PILOT_FIELD} has the correct data, but nothing is displayed in the form.$e_pilot = $frm_current->Entry( -textvariable => \$CURRENT{PILOT_FIELD}, )->pack(); store(%\CURRENT, "FEED_FILE"); ... $f = retrieve('FEEDS_FILE') or warn "unable to retrieve FEEDS from FEE +D_FILE$! \n" unless defined $f; %CURRENT = %{$f};
I was able to get it to display by
but I shouldn't have to right ?????$e_cs_search->configure( -textvariable=>\$CURRENT{PILOT_FIELD} + ); $mw->update;
thanks for any insights
LiamIn reply to tk form textvariables by liamlrb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |