Method GTK2.SpinButton()->spin()


Method spin

GTK2.SpinButton spin(int direction, float increment)

Description

If you want to alter the value of a Spin Value relative to its current value, then this function can be used.

The direction paramenter is one of SPIN_END, SPIN_HOME, SPIN_PAGE_BACKWARD, SPIN_PAGE_FORWARD, SPIN_STEP_BACKWARD, SPIN_STEP_FORWARD and SPIN_USER_DEFINED

GTK2.SpinStepForward and GTK2.SpinStepBackward change the value of the Spin Button by the amount specified by increment, unless increment is equal to 0, in which case the value is changed by the value of step_increment in theAdjustment.

GTK2.SpinPageForward and GTK2.SpinPageBackward simply alter the value of the Spin Button by increment.

GTK2.SpinHome sets the value of the Spin Button to the bottom of the Adjustments range.

GTK2.SpinEnd sets the value of the Spin Button to the top of the Adjustments range.

GTK2.SpinUserDefined simply alters the value of the Spin Button by the specified amount.