|
|
| The stupid question is the question not asked | |
| PerlMonks |
Tk Entry not updating when textvariable changesby smithbr (Initiate) |
| on Aug 21, 2009 at 19:22 UTC ( #790448=perlquestion: print w/ replies, xml ) | Need Help?? |
|
smithbr has asked for the
wisdom of the Perl Monks concerning the following question:
Hi, I am just starting with Tk and I'll admit, I don't get a chance to write a lot of Perl. But, this seems very simple to me so I can't figure out why it won't work.
I assume I must be doing something really stupid because my entry never gets updated, but $text changes from the prints. If I add $entry->configure(-textvariable=>$text) before the $mw->update() it works ok. However, all the documentation suggests if I use textvariable, changing the variable anywhere should magically update the widget text. I searched around, but the similar problems I saw were much more complicated than this so I didn't get a lot of help from them. Thanks.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||