PyGTK uses gtk.Adjustment object to be used in association with such widgets so that user adjustments are passed to some callback function for processing. An Adjustment object contains lower and upper bounds of an adjustable value and its increment step paramaters. When parameters of adjustment object changes, it emits changed or value_changed signals.
The following is the constructor of the gtk.Adjustment class −
gtk.Adjustment(value = 0, lower = 0, upper = 0, step_incr = 0, page_incr = 0, page_size = 0)The meaning of each of the attributes in the constructor is as follows −
| value | The initial value |
| lower | The minimum value |
| upper | The maximum value |
| step_incr | The step increment |
| page_incr | The page increment |
| page_size | The page sizes |
| Changed | This is emitted when one (or more) of the adjustment attributes (except the value attribute) has changed. |
| Value-changed | This is emitted when the adjustment value attribute has changed. |
No comments:
Post a Comment