use Tk; use Tk::HList; use Tk::LabFrame; my $mw = MainWindow->new; my $gui_period_f = $mw->LabFrame( -label => "report month", -labelside => 'acrosstop', -relief => 'groove', -borderwidth => '5' ); my $b_period = $gui_period_f->Button( -text => "change year", -command => sub { &do_select_period }, -foreground => 'darkgrey' ); my $gui_period = $gui_period_f->Scrolled( qw/HList -background grey -scrollbars se -height 5 -width 35/ ); # $gui_period->bind( '' => \&show_period ); $gui_period->configure( -selectmode => 'single' ); $gui_period->configure( -browsecmd => \&show_period ); $gui_period->configure( -separator => '+' ); $gui_period_f->grid( -row => 1, -column => 0, -rowspan => 2, -sticky => 'nsew' ); $b_period->grid( -row => 1, -column => 0, -rowspan => 1, -sticky => 'nsew' ); $gui_period->grid( -row => 2, -column => 0, -rowspan => 1, -sticky => 'nsew' ); MainLoop;