in reply to Printing -1 in a Tk Entry.
use Tk; use strict; my %params = ( a => [ "blah1", "hello" ], b => [ "blah2", "-1" ] ); my $mw = MainWindow->new(-title => 'Play w/form'); foreach my $key (keys(%params)){ my $entry = $mw->Entry(-textvariable=>\$params{$key}[1])->pack(); #$entry->insert('e',$params{$key}[1]); #unnecessary insert } MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Printing -1 in a Tk Entry.
by Scarborough (Hermit) on Jun 02, 2004 at 13:37 UTC | |
by gri6507 (Deacon) on Jun 02, 2004 at 13:55 UTC |