GimpUi.SpinScale

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.CellEditable Gtk.CellEditable GObject.GInterface->Gtk.CellEditable Gtk.Editable Gtk.Editable GObject.GInterface->Gtk.Editable Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GimpUi.SpinButton GimpUi.SpinButton GimpUi.SpinScale GimpUi.SpinScale GimpUi.SpinButton->GimpUi.SpinScale Gtk.Buildable->Gtk.Widget Gtk.Entry Gtk.Entry Gtk.CellEditable->Gtk.Entry Gtk.Editable->Gtk.Entry Gtk.SpinButton Gtk.SpinButton Gtk.Entry->Gtk.SpinButton Gtk.Orientable->Gtk.SpinButton Gtk.SpinButton->GimpUi.SpinButton Gtk.Widget->Gtk.Entry

Subclasses:

None

Methods

Inherited:

GimpUi.SpinButton (2), Gtk.SpinButton (24), Gtk.Entry (76), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.CellEditable (3), Gtk.Editable (13), Gtk.Orientable (2)

Structs:

Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new (adjustment, label, digits)

get_constrain_drag ()

get_gamma ()

get_label ()

get_mnemonic_keyval ()

get_scale_limits (lower, upper)

set_constrain_drag (constrain)

set_gamma (gamma)

set_label (label)

set_scale_limits (lower, upper)

unset_scale_limits ()

Virtual Methods

Inherited:

Gtk.SpinButton (5), Gtk.Entry (14), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gtk.CellEditable (3), Gtk.Editable (10)

Properties

Inherited:

Gtk.SpinButton (8), Gtk.Entry (51), Gtk.Widget (39), Gtk.CellEditable (1), Gtk.Orientable (1)

Name

Type

Flags

Short Description

label

str

r/w

Style Properties

Inherited:

Gtk.SpinButton (1), Gtk.Entry (4), Gtk.Widget (17)

Signals

Inherited:

Gtk.SpinButton (5), Gtk.Entry (15), Gtk.Widget (69), GObject.Object (1), Gtk.CellEditable (2), Gtk.Editable (3)

Fields

Inherited:

Gtk.SpinButton (5), Gtk.Entry (15), Gtk.Widget (69), GObject.Object (1), Gtk.CellEditable (2), Gtk.Editable (3)

Class Details

class GimpUi.SpinScale(**kwargs)
Bases:

GimpUi.SpinButton

Abstract:

No

Structure:

GimpUi.SpinScaleClass

classmethod new(adjustment, label, digits)
Parameters:
Return type:

Gtk.Widget

get_constrain_drag()
Return type:

bool

get_gamma()
Return type:

float

get_label()
Return type:

str

get_mnemonic_keyval()
Returns:

the keyval usable for accelerators, or [const`Gdk`.KEY_VoidSymbol].

Return type:

int

If self has been set with a mnemonic key in its label text, this function returns the keyval used for the mnemonic accelerator.

get_scale_limits(lower, upper)
Parameters:
Return type:

bool

set_constrain_drag(constrain)
Parameters:

constrain (bool) – whether constraining to integer values when dragging with pointer.

If constrain_drag is True, dragging the scale with the pointer will only result into integer values. It will still possible to set the scale to fractional values (if the spin scale “digits” is above 0) for instance with keyboard edit.

set_gamma(gamma)
Parameters:

gamma (float) –

set_label(label)
Parameters:

label (str) –

set_scale_limits(lower, upper)
Parameters:
unset_scale_limits()

Property Details

GimpUi.SpinScale.props.label
Name:

label

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE