pyface.fields.i_combo_field module

The combo field interface.

class pyface.fields.i_combo_field.IComboField(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]

Bases: IEditableField

The combo field interface.

This is for comboboxes holding a list of values.

value = Enum(values="values")

The current value of the combobox.

values = "values")

The list of available values for the combobox.

formatter = Callable(str, allow_none=False)

Callable that converts a value to text plus an optional icon. Should return either a uncode string or a tuple of image resource and string.

class pyface.fields.i_combo_field.MComboField(values, **traits)[source]

Bases: HasTraits

values = "values")

The list of available values for the combobox.

formatter = Callable(str, allow_none=False)

Callable that converts a value to text plus an optional icon. Should return either a uncode string or a tuple of image resource and string.

value = Enum(values="values")

The current text value of the combobox.