package Tk
::LabeledEntryLabeledRadiobutton
;
$VERSION = '3.006'; # $Id: //depot/Tk8/demos/demos/LabEnLabRad.pm#6 $
Construct Tk
::Widget
'LabeledEntryLabeledRadiobutton';
# LabeledEntryLabeledRadiobutton(s) constructor.
# Advertised subwidgets: labeled_entry, labeled_radiobutton.
my $e = $cw->Component(LabEntry
=> 'labeled_entry');
$e->pack(-side
=> 'left', -expand
=> 1, -fill
=> 'both');
my $r = $cw->Component(LabRadiobutton
=> 'labeled_radiobutton',
-radiobuttons
=> delete $args->{'-radiobuttons'}
$r->pack(-side
=> 'left', -expand
=> 1, -fill
=> 'both');
$cw->ConfigSpecs(-entry_label
=> [ Tk
::Configure
->new($e,'-label'), undef, undef, 'Entry' ],
-radio_label
=> [ Tk
::Configure
->new($r,'-label'), undef, undef, Choose
],
-entry_variable
=> [ Tk
::Configure
->new($e,'-textvariable'), undef, undef, \
$cw->{Config
}{-text
} ],
-radio_variable
=> [ Tk
::Configure
->new($r,'-variable'), undef, undef, undef ],
-indicatoron
=> [ 'labeled_radiobutton' , undef, undef, undef ],
DEFAULT
=> [ ['labeled_entry','labeled_radiobutton']],
$cw->Delegates(DEFAULT
=> 'labeled_entry');
} # end LabeledEntryLabeledRadiobutton(s) constructor