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