SpinButton.newWithRange

Creates a new gtk.spin_button.SpinButton with the given properties.

This is a convenience constructor that allows creation of a numeric gtk.spin_button.SpinButton without manually creating an adjustment. The value is initially set to the minimum value and a page increment of 10 * step is the default. The precision of the spin button is equivalent to the precision of step.

Note that the way in which the precision is derived works best if step is a power of ten. If the resulting precision is not suitable for your needs, use gtk.spin_button.SpinButton.setDigits to correct it.

class SpinButton
static
newWithRange
(
double min
,
double max
,
double step
)

Parameters

min double

Minimum allowable value

max double

Maximum allowable value

step double

Increment added or subtracted by spinning the widget

Return Value

Type: gtk.spin_button.SpinButton