gtk.Ruler — a base class for horizontal or vertical rulers
This widget is considered too specialized or little-used for PyGTK and GTK+, and will in the future be moved to some other package. If your application needs this widget, feel free to use it, as the widget does work and is useful in some applications; it's just not of general interest. However, it will eventually move out of the PyGTK and GTK+ distribution.
gtk.Ruler widget is a
base class for horizontal and vertical rulers. Rulers are used to show the
mouse pointer's location in a window. Within the ruler a small triangle
indicates the location of the mouse relative to the horizontal or vertical
gtk.HRuler to learn
about horizontal rulers. See
gtk.VRuler to learn
about vertical rulers.
|the measurement units|
set_metric() method sets the
measurement units of the ruler to the value specified by
metric. Available units are
gtk.CENTIMETERS. The default unit of measurement is
|the upper limit of the ruler|
|the lower limit of the ruler|
|the position of the mark on the ruler|
|the maximum size of the rule|
set_range() method sets the range
of the ruler to the values specified by
max_size (all values are floats).
|the measurement units currently used for the ruler|
|a tuple containing: the lower limit of the ruler, the upper limit of the ruler, the current position of the mark on the ruler and the maximum size of the ruler used when calculating the space to leave for the text.|