Gtk.VScale

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Buildable->Gtk.Widget Gtk.Range Gtk.Range Gtk.Orientable->Gtk.Range Gtk.Scale Gtk.Scale Gtk.Range->Gtk.Scale Gtk.VScale Gtk.VScale Gtk.Scale->Gtk.VScale Gtk.Widget->Gtk.Range

Subclasses:None

Style Properties

Inherited:Gtk.Scale (2), Gtk.Range (8), Gtk.Widget (17)

Fields

Inherited:Gtk.Scale (1), Gtk.Range (4), Gtk.Widget (69), GObject.Object (1)
Name Type Access Description
scale Gtk.Scale r  

Class Details

class Gtk.VScale(**kwargs)
Bases:Gtk.Scale
Abstract:No
Structure:Gtk.VScaleClass

The Gtk.VScale widget is used to allow the user to select a value using a vertical slider. To create one, use Gtk.HScale.new_with_range().

The position to show the current value, and the number of decimal places shown can be set using the parent Gtk.Scale class’s functions.

Gtk.VScale has been deprecated, use Gtk.Scale instead.

classmethod new(adjustment)[source]
Parameters:adjustment (Gtk.Adjustment) – the Gtk.Adjustment which sets the range of the scale.
Returns:a new Gtk.VScale.
Return type:Gtk.Widget

Creates a new Gtk.VScale.

Deprecated since version 3.2: Use Gtk.Scale.new() with Gtk.Orientation.VERTICAL instead

classmethod new_with_range(min, max, step)[source]
Parameters:
  • min (float) – minimum value
  • max (float) – maximum value
  • step (float) – step increment (tick size) used with keyboard shortcuts
Returns:

a new Gtk.VScale

Return type:

Gtk.Widget

Creates a new vertical scale widget that lets the user input a number between min and max (including min and max) with the increment step. step must be nonzero; it’s the distance the slider moves when using the arrow keys to adjust the scale value.

Note that the way in which the precision is derived works best if step is a power of ten. If the resulting precision is not suitable for your needs, use Gtk.Scale.set_digits() to correct it.

Deprecated since version 3.2: Use Gtk.Scale.new_with_range() with Gtk.Orientation.VERTICAL instead