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

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

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

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

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

The current value of the spinner