$VERSION = '3.010'; # $Id: //depot/Tk8/Tk/Configure.pm#10 $
# Class that handles cget/configure for options that
# need translating from public form
# e.g. $cw->configure(-label => 'fred')
# into $cw->subwiget('label')->configure(-text => 'fred')
# Should probably do something clever with regexp's here
unshift(@args,'configure','cget') if (@args < 3);
return bless \@args,$class;
croak('Wrong number of args to cget') unless (@_ == 2);
my ($set,$get,$widget,@args) = @$alias;
my ($set,$get,$widget,@args) = @$alias;
eval { @results = $widget->$set(@args,@_) };
eval { $results = $widget->$set(@args,@_) };
my ($set,$get,$widget,@args) = @$alias;
return $widget->$get(@args,@_);
my ($set,$get,$widget,@args) = @$alias;