pyface.fields.i_spin_field module

The spin field interface.

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

Bases: IEditableField

The spin field interface.

This is for spinners holding integer values.

value = Range(low="minimum", high="maximum")

The current value of the spinner

bounds = Tuple(Int, Int)

The bounds of the spinner

minimum = Property(Int, observe="bounds")

The minimum value

maximum = Property(Int, observe="bounds")

The maximum value

wrap = Bool()

Whether the values wrap around at maximum and minimum.

class pyface.fields.i_spin_field.MSpinField(**traits)[source]

Bases: HasTraits

bounds = Tuple(Int, Int)

The bounds for the spinner

minimum = Property(Int, observe="bounds")

The minimum value for the spinner

maximum = Property(Int, observe="bounds")

The maximum value for the spinner

wrap = Bool()

Whether the values wrap around at maximum and minimum.

value = Range(low="minimum", high="maximum")

The current value of the spinner