NAME
ButtonBox - Set of buttons with horizontal or vertical layout
CREATION
ButtonBox pathName ?option value...?
WIDGET-SPECIFIC OPTIONS
  -background or -bg   -default
  -homogeneous
  -orient
  -padx
  -pady
  -spacing
WIDGET COMMAND
pathName add ?option value...?
pathName cget option
pathName configure ?option? ?value option value ...?
pathName index index
pathName invoke index
pathName itemcget index option
pathName itemconfigure index ?option? ?value option value ...?
pathName setfocus index



DESCRIPTION

ButtonBox layouts Button horizontally or vertically. Some commands take an index as argument indicating on which Button it work. This index may be specified in any of the following forms:

number
Specifies the Button numerically, where 0 corresponds to the first added Button, 1 to the next, and so on.
end or last
Indicates the last item added.
default
Indicates the default Button.




WIDGET-SPECIFIC OPTIONS
-background
Specifies a default background color for all added buttons and for the frame.
-default
Specifies the default button of the button box. The value is an integer referencing the n-th added button, starting from 0. If this value is -1 (the default), all button wil be drawn with their -default option set to disabled, and this value can not be changed.
If this value is not -1, the associated button is drawn with -default option set to active and the others are drawn with -default option set to normal. The value can be changed by configure.
-homogeneous (read-only)
Specifies wether or not buttons must have the same width for horizontal layout.
-orient (read-only)
Specifies the orientation of the button box. If this option is horizontal (the default), buttons are added from top to bottom. If this option is vertical, buttons are added from left to right.
-padx
Specifies a default value for the -padx option of all added buttons.
-pady
Specifies a default value for the -pady option of all added buttons.
-spacing
Specifies the default spacing between buttons. This value can be changed before each call to add.


WIDGET COMMAND
pathName add ?option value...?
Add a button to the button box.

See Button for description of options.

pathName cget option
Returns the current value of the configuration option given by option. Option may have any of the values accepted by the create command.
pathName configure ?option? ?value option value ...?
Modify the configuration options of the widget. Option may have any of the values accepted by the create command, except those who are read-only.
pathName index index
Return the numerical index corresponding to index.
pathName invoke index
Invoke the Button given by index.
pathName itemcget index option
Returns the current value of a configuration option for the item given by index. Option may have any of the values accepted by the item creation command.
pathName itemconfigure index ?option? ?value option value ...?
Modify the configuration options of the item given by index. Options may have any of the values accepted by the item creation command, except those who are read-only.
pathName setfocus index
Set the focus to the Button given by index.