pike.hubbe.net

[Top]
GTK
GTK.SpinButton
previousGTK.SpinButton()->set_snap_to_ticks() GTK.SpinButton()->set_value()next

Method GTK.SpinButton()->set_update_policy()


Method set_update_policy

object(GTK.SpinButton) GTK.SpinButton()->set_update_policy(int policy)

Description

The possible values of policy are either GTK.UpdateAlways or GTK.UpdateIfValid.

These policies affect the behavior of a Spin Button when parsing inserted text and syncing its value with the values of the Adjustment.

In the case of GTK.UpdateIfValid the Spin Button value only gets changed if the text input is a numeric value that is within the range specified by the Adjustment. Otherwise the text is reset to the current value.

In case of GTK.UpdateAlways errors are ignored while converting text into a numeric value.


Extracted from Pike v7.3 release 11 at 2001-11-03.