The following important functions of the gtk.Range class are implemented by the Scale and Scrollbar widgets −
- set_update_policy() − This sets the "update-policy" property to the value. The policy has the following values −
| gtk.UPDATE_CONTINUOUS | anytime the range slider is moved, the range value will change and the "value_changed" signal will be emitted. |
| gtk.UPDATE_DELAYED | the value will be updated after a brief timeout where no slider motion occurs, so value changes are delayed slightly rather than continuously updated. |
| gtk.UPDATE_DISCONTINUOUS | the value will only be updated when the user releases the button and ends the slider drag operation. |
- set_adjustment() − This sets the "adjustment" property. The Adjustment object is used as model for the Range object.
- set_increments() − This sets the step and page sizes for the range.
- set_range() − This sets the minimum and maximum allowable values for the Range widget
- set_value() − This sets the current value of the range to the value specified.
No comments:
Post a Comment