## NAME

configure, cget - Change or inquire the attributes of an object.

## SYNOPSIS

$var = $widget->cget('option')
$widget->configure(option => value ?,option => value ...?)'
@var = $widget->configure('option')
@var = $widget->configure

## DESCRIPTION

$widget->cget('option')
  Returns the current value of option for $widget.

$widget->configure(option => value ?,option => value ...?)'
  Sets the values of option to value for each option => value pair. The internal new method does an implicit configure in this form with options passed in at widget create time.

$widget->configure('option')
  Returns a list of five elements:
Configure Option
  The value of option.
Name
  The option's name in the option database (e.g. in .Xdefaults files).
Class
  The option's class value in the option database.
Default
  The default value for the option if not specified or in the option databse.
Value
  The current value (as returned by cget).

$widget->configure
  Returns a list of lists for all the options supported by $widget. Each sub-list is in the form returned by configure('option'). (This mechanism is used by the Tk::Derived class to determine the options available from base class.)

## SEE ALSO

ConfigSpecs

## BUGS

cget('option') is clumsy with the need for '' due to perl's parsing rules. Something more subtle using tie might look better.

## KEYWORDS

configure, cget