enaml.widgets.combo_box

Classes

ComboBox A drop-down list from which one item can be selected at a time.
class enaml.widgets.combo_box.ComboBox(parent=None, **kwargs)[source]

Bases: enaml.widgets.control.Control

A drop-down list from which one item can be selected at a time.

Use a combo box to select a single item from a collection of items.

See ObjectCombo for a more robust combo box control.

items

The unicode strings to display in the combo box.

index

The integer index of the currently selected item. If the index falls outside the range of items, the item will be deselected.

selected_item

A read only cached property which returns the selected item.

editable

Whether the text in the combo box can be edited by the user.

hug_width

A combo box hugs its width weakly by default.

proxy

A reference to the ProxyComboBox object.