in reply to Tk on the fly

Are you looking for one Entry per value in the hash? If so something like this should work:
my $pane = $mw->Scrolled('Pane', -height => 150, -width => 200, -scrollbars => 'osoe', )->pack; foreach my $key (keys %hash) { my $frame = $pane->Frame->pack(-side => 'top', -fill => 'x'); $entries{$key} = $frame->Entry->pack(-side => 'right'); $entries{$key}->insert('end', $hash{$key}); $frame->Label(-text => "$key")->pack; }
I use the scrolled pane so that a large number of entries won't force Tk to expand it's window beyond the screen size.

Replies are listed 'Best First'.
Re: Re: Tk on the fly
by Scarborough (Hermit) on May 12, 2004 at 08:15 UTC
    Thank you this is very helpful and has confirmed I was in the right area for what I'm trying to achive.
    Thanks.