Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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.


Comment on Re: Tk Entry not updating when textvariable changes
Download Code
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (18)
As of 2014-08-29 16:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (282 votes), past polls