monksp has asked for the wisdom of the Perl Monks concerning the following question:
What is it that I'm doing wrong here? TIA.sub Populate { my($cw, $args) = @_; $cw->SUPER::Populate($args); my($lclass, $oclass) = @{delete $args->{'-classes'}}; my($l) = $cw->Label(-class => $lclass)->pack(-side => 'left', -fil +l => 'both', -expand => 1); my($o) = $cw->Optionmenu(-class => $oclass)->pack(-side => 'right' +, -fill => 'both', -expand => 1); $cw->Advertise('label' => $l); $cw->Advertise('optionmenu' => $o); $cw->ConfigSpecs( '-text' => [$l, undef, undef, undef], '-textvariable' => [$l, undef, undef, undef], '-options' => [$o, undef, undef, undef], DEFAULT => [SELF, undef, undef, undef] ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Specifying the -class of Tk subwidgets
by lamprecht (Friar) on Jul 04, 2009 at 08:07 UTC | |
by monksp (Acolyte) on Jul 08, 2009 at 16:48 UTC | |
by lamprecht (Friar) on Jul 10, 2009 at 14:05 UTC | |
by monksp (Acolyte) on Jul 10, 2009 at 16:14 UTC |