| Previous | Next
The LabFrame WidgetA LabFrame widget has all the features of a Frame and additionally provides a text label on the use Tk; use Tk::LabFrame; use strict; my $mw = MainWindow->new(-title => 'LabFrame example') my $lf = $mw->LabFrame(-label => "This is the label of a LabFrame", -labelside => 'acrosstop')->pack; $lf->Text(qw/-width 40 -height 5/)->pack; MainLoop; This code produces the widget shown in Figure 23-14. Figure 23-14. A LabFrame widgetLabFrame OptionsLabFrame supports the same options as the Frame widget, plus: |