SpinBox (hwx.gui)

A SpinBox Widget.

SpinBox allows to choose a value by clicking the up/down buttons or pressing up/down on the keyboard to increase/decrease the displayed value.

The upper and lower bounds are defined by the min and max properties. The user can also type the value manually. The SpinBox supports integer values and invokes the callback command every time the value is changed.

Inherits:

Properties

Public Methods

setValue (self, value)

Property Details

max()

The maximum integer value.

min()

The minimum integer value.

prefix()

The text that appears before the int.

step()

The value by which SpinBox is increased/decreased when you click the arrows.

suffix()

The text that appears after the int.

Method Details

setValue(self, value)

Sets the specified value after converting it into an integer.

param value:The numeric value to be set for the SpinBox.
type value:int