itemconfigure

(#<widget> 'itemconfigure index ?option? ?value? ?option value ...?)
Query or modify the configuration options of an item in the listbox.

If no option is specified, returns a list describing all of the available options for the item (see Tk_ConfigureInfo for information on the format of this list).

If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified).

If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string.

The following options are currently supported for items:

#:background color
Color specifies the background color to use when displaying the item. It may have any of the forms accepted by Tk_GetColor.
#:foreground color
Color specifies the foreground color to use when displaying the item. It may have any of the forms accepted by Tk_GetColor.
#:selectbackground color
color specifies the background color to use when displaying the item while it is selected. It may have any of the forms accepted by Tk_GetColor.
#:selectforeground color
color specifies the foreground color to use when displaying the item while it is selected. It may have any of the forms accepted by Tk_GetColor.

© Author | Home | Sitemap