- NAME
- ComboBox
- ComboBox widget
- CREATION
- ComboBox pathName ?option value...?
- OPTIONS from ArrowButton
-background or -bg |
-disabledforeground |
-foreground or -fg |
-state |
- OPTIONS from Entry
-command |
-disabledforeground |
-dragenabled |
-dragendcmd |
-dragevent |
-draginitcmd |
-dragtype |
-dropcmd |
-dropenabled |
-dropovercmd |
-droptypes |
-editable |
-entrybg (see -background) |
-entryfg (see -foreground) |
-exportselection |
-font |
-helptext |
-helptype |
-helpvar |
-highlightbackground |
-highlightcolor |
-highlightthickness |
-insertbackground |
-insertborderwidth |
-insertofftime |
-insertontime |
-insertwidth |
-justify |
-selectbackground |
-selectborderwidth |
-selectforeground |
-show |
-state |
-takefocus |
-text |
-textvariable |
-width |
-xscrollcommand |
- OPTIONS from LabelFrame
-background or -bg |
-borderwidth or -bd |
-disabledforeground |
-foreground or -fg |
-helptext |
-helptype |
-helpvar |
-label (see -text) |
-labelanchor (see -anchor) |
-labelfont (see -font) |
-labelheight (see -height) |
-labeljustify (see -justify) |
-labelwidth (see -width) |
-name |
-padx |
-pady |
-relief |
-side |
-state |
-underline |
-wraplength |
- WIDGET-SPECIFIC OPTIONS
- WIDGET COMMAND
- pathName cget
option
- pathName configure
?option? ?value option value ...?
- pathName getvalue
- pathName setvalue
index
DESCRIPTION
ComboBox widget enables the user to select a value among a list given by the values option.
The list of possible values can be popped by pressing the ArrowButton or by clicking in the entry
when editable value of the ComboBox is false.
If editable value of the ComboBox is true and the entry has the focus, the user can
press the top and bottom arrow keys to modify its value. If the current value exactly match a value in the list,
then the previous (for top arrow key) or then next (for bottom arrow key) value in the list is displayed.
If the current value match the beginning of a value in the list, then this value is displayed.
If the current value doesnt match anything, then the first value is displayed.
WIDGET-SPECIFIC OPTIONS
- -height
-
Specifies the desired height for the window, in lines. If zero or less, then the desired
height for the window is made just large enough to hold all the elements in the listbox.
- -modifycmd
-
Specifies a Tcl command called when the user modify the value of the ComboBox by selecting it in the listbox or
pressing arrow key.
- -values
-
Specifies the values to display in the listbox of the ComboBox.
WIDGET COMMAND
- 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 getvalue
-
Description text
- pathName setvalue
index
-
Description text