liamlrb has asked for the wisdom of the Perl Monks concerning the following question:
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
Liam
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: tk form textvariables
by hangon (Deacon) on Mar 03, 2009 at 05:31 UTC | |
by liamlrb (Acolyte) on Mar 03, 2009 at 17:00 UTC | |
by liamlrb (Acolyte) on Mar 03, 2009 at 17:24 UTC | |
by hangon (Deacon) on Mar 03, 2009 at 18:42 UTC | |
by liamlrb (Acolyte) on Mar 03, 2009 at 16:32 UTC | |
|
Re: tk form textvariables
by GrandFather (Saint) on Mar 03, 2009 at 02:49 UTC | |
|
Re: tk form textvariables
by gnosti (Chaplain) on Mar 03, 2009 at 03:42 UTC |