enaml.widgets.spin_box

Classes

SpinBox

A spin box widget which manipulates integer values.

class enaml.widgets.spin_box.SpinBox(parent=None, **kwargs)[source]

Bases: enaml.widgets.control.Control

A spin box widget which manipulates integer values.

minimum

The minimum value for the spin box. Defaults to 0.

maximum

The maximum value for the spin box. Defaults to 100.

value

The position value of the spin box. The value will be clipped to always fall between the minimum and maximum.

prefix

An optional prefix to include in the displayed text.

suffix

An optional suffix to include in the displayed text.

special_value_text

Optional text to display when the spin box is at its minimum. This allows the developer to indicate to the user a special significance to the minimum value e.g. “Auto”

single_step

The step size for the spin box. Defaults to 1.

read_only

Whether or not the spin box is read-only. If True, the user will not be able to edit the values in the spin box, but they will still be able to copy the text to the clipboard.

wrapping

Whether or not the spin box will wrap around at its extremes. Defaults to False.

hug_width

A spin box expands freely in width by default.

proxy

A reference to the ProxySpinBox object.