fcvw has asked for the wisdom of the Perl Monks concerning the following question:
Can someone help me to get a frame around a listbox in a grid?use Tk; use Tk::LabFrame; my $listn =$mw->LabFrame(-label=>"New", -labelside=>'acrosstop')->pack; $listn =$mw->Scrolled(qw/Listbox -foreground red -selectforeground blu +e/)->pack; $listn->grid(-row=>0,-column=>0,-columnspan=>2,-sticky=>'nsew'); foreach $key (sort keys %allevents) { $listn->insert('end', $key); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk::LabFrame and Listbox
by zentara (Cardinal) on Apr 28, 2005 at 11:37 UTC |