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: pyface.fields.i_field.IField

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: traits.has_traits.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.