in reply to retriving info from a csv file in Tk
#!/usr/bin/perl use warnings; use strict; use Tk; use Tk::Pane; my $mw =MainWindow-> new (-title => "Demo"); $mw->geometry('340x300'); my $frame_tl= $mw->Scrolled('Pane', -scrollbars => 'se', )->pack(-expand => 1, -fill => 'both'); my %f; for (1..13){ $f{$_}{'frame'}= $frame_tl->Frame(-borderwidth =>2, -relief=> 'groo +ve') ->pack(-side => 'top', -fill => 'x'); $f{$_}{'label'} = $f{$_}{'frame'}->Label(-relief => 'groove',-text= +>" $_ :" ) ->pack(-side => 'left', -fill => 'y'); $f{$_}{'entry'}= $f{$_}{'frame'}->Entry(-takefocus => 1,-width => 6 +0, -textvariable=>\$_) ->pack(-side => 'left', -fill => 'y'); } MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: retriving info from a csv file in Tk
by kranthi (Sexton) on May 22, 2008 at 10:51 UTC |