# enaml.widgets.spin_box

Classes

`SpinBox` | A spin box widget which manipulates integer values.

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

  Bases: `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.

  activated

    An event fired when an object’s proxy is activated. It is triggered once during the object lifetime, at the end of the activate_proxy method.

  background

    The background color of the widget.

  destroyed

    An event fired when an object has been destroyed. It is triggered once during the object lifetime, just before the object is removed from the tree structure.

  enabled

    Whether or not the widget is enabled.

  initialized

    An event fired when an object is initialized. It is triggered once during the object lifetime, at the end of the initialize method.

  name

    Export the ‘name’ attribute as a declarative member.

  style_class

    The style class to which this item belongs. Multiple classes can be separated with whitespace. An empty string indicates the widget does not belong to any style class.