GimpUi.LabelSpin¶
- Subclasses:
 
Methods¶
- Inherited:
 GimpUi.Labeled (3), Gtk.Grid (21), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)
- Structs:
 Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 GimpUi.Labeled (1), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
The number of decimal places to display  | 
||
r/w/c  | 
Minimum value  | 
||
r/w/c  | 
Max value  | 
||
r/w  | 
Current value  | 
Child Properties¶
- Inherited:
 
Style Properties¶
- Inherited:
 
Signals¶
- Inherited:
 GimpUi.Labeled (1), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name  | 
Short Description  | 
|---|---|
Fields¶
- Inherited:
 GimpUi.Labeled (1), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_instance  | 
r  | 
Class Details¶
- class GimpUi.LabelSpin(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
This widget is a subclass of
GimpUi.Labeledwith aGimpUi.SpinButton.- classmethod new(text, value, lower, upper, digits)¶
 - Parameters:
 - Returns:
 The new
GimpUi.LabelSpinwidget.- Return type:
 
Suitable increment values are estimated based on the [lower, upper] range. If digits is -1, then it will also be estimated based on the same range. Digits estimation will always be at least 1, so if you want to show integer values only, set 0 explicitly.
- get_spin_button()¶
 - Returns:
 The
GimpUi.SpinButtoncontained in self.- Return type:
 
This function returns the
GimpUi.SpinButtonpacked in self.
- get_value()¶
 - Returns:
 The value currently set.
- Return type:
 
This function returns the value shown by self.
- set_digits(digits)¶
 - Parameters:
 digits (
int) – the number of decimal places to display.
Set the number of decimal place to display in the self's entry. If digits is -1, then it will also be estimated based on self's range. Digits estimation will always be at least 1, so if you want to show integer values only, set 0 explicitly.
- set_increments(step, page)¶
 - 
Set the step and page increments of the spin button. By default, these increment values are automatically computed depending on the range based on common usage. So you will likely not need to run this for most case. Yet if you want specific increments (which the widget cannot guess), you can call this function.
 
- set_value(value)¶
 - Parameters:
 value (
float) – A new value.
This function sets the value shown by self.
- do_value_changed() virtual¶
 
Signal Details¶
- GimpUi.LabelSpin.signals.value_changed(label_spin)¶
 - Signal Name:
 value-changed- Flags:
 - Parameters:
 label_spin (
GimpUi.LabelSpin) – The object which received the signal
Property Details¶
- GimpUi.LabelSpin.props.digits¶
 - 
The number of decimal places to display. If -1, then the number is estimated.
New in version 3.0.
 
- GimpUi.LabelSpin.props.lower¶
 - 
The lower bound of the spin button.
New in version 3.0.
 
- GimpUi.LabelSpin.props.upper¶
 - 
The upper bound of the spin button.
New in version 3.0.