Tk::LabFrame - labeled frame.
use Tk::LabFrame; $f = $top->LabFrame(-label => "Something", -labelside => 'acrosstop');
LabFrame is exactly like Frame except that it takes two additional options:
use Tk; require Tk::LabFrame; require Tk::LabEntry; my $test = 'Test this'; $top = MainWindow->new; my $f = $top->LabFrame(-label => "This is a label", -labelside => "acrosstop"); $f->LabEntry(-label => "Testing", -textvariable => \$test)->pack; $f->pack; MainLoop;
Perhaps LabFrame should be subsumed within the generic pTk labeled widget mechanism.
Rajappa Iyer rsi@earthling.net
This code is derived from LabFrame.tcl and LabWidg.tcl in the Tix4.0 distribution by Ioi Lam. The code may be redistributed under the same terms as Perl.
To install Tk, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tk
CPAN shell
perl -MCPAN -e shell install Tk
For more information on module installation, please visit the detailed CPAN module installation guide.