PyGTK Scale Class - PyGTK

What is PyGTK Scale Class?

These class performances as an abstract base class for HScale and VScale widgets. These widgets effort as a slider control and select a numeric value.

The following methodsof this abstract class are implemented by the HScale class and the VScale class −

  • set_digits() − This sets number of decimal places to be used to display instantaneous value of widget.
  • set_draw_value() − set to True, current value will be displayed next to the slider.
  • set_value_pos() − This is the position at which the values are drawn. This can be either gtk.POS_LEFT, gtk.POS_RIGHT, gtk.POS_TOP or gtk.POS_BOTTOM.

An object of gtk.HScale class provides a horizontal slider, whereas an object of gtk.VScale class provides vertical slider. Both classes have identical constructors –

The adjustment object covers numerous attributes that offer access to value and bounds.

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

PyGTK Topics