Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2015-07-05 13:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls