Debian Codegraph @

examples/labelpack

raw
1 #!/usr/local/bin/perl -w
2
3 use Tk;
4 require Tk::LabEntry;
5
6 my $mw = MainWindow->new;
7
8 my $canvas_total = 'Entry Text';
9 my $le_t_text = 'The Label';
10
11 $le = $mw->LabEntry(-textvariable =>\$canvas_total,
12 -labelVariable => \$le_t_text,
13 -labelPack => [-side => 'left']);
14
15 $le->pack(-expand => 1, -fill => 'x');
16
17 MainLoop;