PyGTK Adjustment Class - PyGTK

What is PyGTK Adjustment Class?

Certain widgets in PyGTK toolkit are such that their belongings can be accustomed over a stated range by the user by using a mouse or a keyboard. A widget like Viewport is used to show some adjustable portion of a large data, for instance, a multiline text in TextView control.
PyGTK uses gtk.Adjustment object to be used in suggestion with such widgets so that user changes are passed to some callback function for handling. An Adjustment object contains lower and upper bounds of an adjustable value and its increase step paramaters. When parameters of adjustment object changes, it emits changed or value_changed signals.

The resulting is the constructor of the gtk.Adjustment class –

The meaning of each of the attributes in the constructor is as follows −


The initial value


The minimum value


The maximum value


The step increment


The page increment


The page sizes

The resulting signals are produced by the Adjustment object −


This is emitted when one (or more) of the adjustment attributes (except the value attribute) has changed.


This is emitted when the adjustment value attribute has changed.

As stated above, the Adjustment object is not a physical widget. Somewhat, it is used in association with the other widgets using which its attributes get changed. Range widgets are used along with the Adjustment object.

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd Protection Status

PyGTK Topics