Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Tk Entry not updating when textvariable changes

by ikegami (Pope)
on Aug 21, 2009 at 20:16 UTC ( #790459=note: print w/replies, xml ) Need Help??

in reply to Tk Entry not updating when textvariable changes

On a hunch, I tried
my $entry = $mw->Entry(-textvariable => \$text)->pack(); ^ |

And it worked.

Replies are listed 'Best First'.
Re^2: Tk Entry not updating when textvariable changes
by smithbr (Initiate) on Aug 21, 2009 at 20:24 UTC

    grrr, that was it, thanks!

    In my actual code, about half of my entry textvariables are using references and half aren't (because I was cutting-and-pasting chunks basically). Of course, the ones I was just now testing were NOT references and the ones that are references aren't in something I expect to update, so I wasn't seeing anything update.

    I then just grabbed the chunk of code without the references and tried it stand-alone and didn't see/think to make the textvariables point to references so I assumed I was doing something really dumb..... Which I was :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://790459]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2016-10-23 12:27 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (301 votes). Check out past polls.