These are the possible values of the
choice options used in the methods above:coption
activebackground | The background color used for choices when they are under the mouse. |
activeforeground | The foreground color used for choices when they are under the mouse. |
background | The background color used for choices when
they are not under the
mouse. Note that this cannot be
abbreviated as bg . |
bitmap | Display a bitmap for this choice; see Section 4.7, “Bitmaps”. |
columnbreak | Normally all the choices are displayed in
one long column. If you set
columnbreak=1 , this choice
will start a new column to the right of the one
containing the previous choice. |
command | A procedure to be called when this choice is activated. |
font | The font used to render the
label text. See Section 4.4, “Type fonts” |
foreground | The foreground color used for choices
when they are not under the
mouse. Note that this
cannot be abbreviated as
fg . |
image | Display an image for this choice; see Section 4.9, “Images”. |
label | The text string to appear for this choice. |
menu | This option is used only for cascade
choices. Set it to a Menu
object that displays the next level of choices. |
offvalue | Normally, the control variable for a
checkbutton is set to 0 when the
checkbutton is off. You can change the off value
by setting this option to the desired value. See
Section 22, “Control variables: the values behind the widgets”. |
onvalue | Normally, the control variable for a
checkbutton is set to 1 when the
checkbutton is on. You can change the on value
by setting this option to the desired value. |
selectcolor | Normally, the color displayed in a set checkbutton or radiobutton is red. Change that color by setting this option to the color you want; see Section 4.3, “Colors”. |
state | Normally, all choices react to mouse clicks,
but you can set
state=DISABLED to gray it
out and make it unresponsive. |
underline | Normally none of the letters in the
label are underlined. Set
this option to the index of a letter to underline
that letter. |
value | Specifies the value of the associated
control variable (see Section 22, “Control variables: the values behind the widgets”) for a radiobutton.
This can be an integer if the control variable is
an IntVar , or a string if
the control variable is a
StringVar . |
variable | For checkbuttons or radiobuttons, this option should be set to the control variable associated with the checkbutton or group of radiobuttons. See Section 22, “Control variables: the values behind the widgets”. |