Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Before you get what you want. . . .

by Nitrox (Chaplain)
on Mar 21, 2003 at 13:58 UTC ( #244862=note: print w/replies, xml ) Need Help??


in reply to Filling Tk Text Entry boxes

Take a look at your usage of the -textvariable attribute, I belive the snippet below does what you want.

use strict; use warnings; use Tk; my ($name, $frame, $entry); my $main = MainWindow->new(); my $frameEntry = $main->Frame()->grid(); $entry = $frameEntry -> Entry(-textvariable => \$name)->grid(-column = +> 1, -row => 5); $name = "Updated after"; MainLoop;
-Nitrox

Replies are listed 'Best First'.
OMG
by £okì (Scribe) on Mar 21, 2003 at 14:10 UTC
    Sometimes it is incredible to me how I can just miss the little things. . I can't tell you how long I spent messing with something almost exactly the same but I never took the single quotes from around -textvariable=>'\$name'
    Thanks for the help but I still have one more thing. How can I edit them from a Subroutine? Do I have to register them as globals or is there some, better way?
      they are already globaly defined

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2023-03-28 21:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (69 votes). Check out past polls.

    Notices?