Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2018-05-28 10:29 GMT
Find Nodes?
    Voting Booth?