GimpUi.SpinButton¶
- Subclasses:
 
Methods¶
- Inherited:
 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:
 
class  | 
  | 
class  | 
  | 
Virtual Methods¶
Properties¶
Style Properties¶
- Inherited:
 
Signals¶
Fields¶
- Inherited:
 Gtk.SpinButton (5), Gtk.Entry (15), Gtk.Widget (69), GObject.Object (1), Gtk.CellEditable (2), Gtk.Editable (3)
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_instance  | 
r  | 
Class Details¶
- class GimpUi.SpinButton(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
GimpUi.SpinButtonis a drop-in replacement forGtk.SpinButton, with the following changes:When the spin-button loses focus, its adjustment value is only updated if the entry text has been changed.
When the spin-button’s “wrap” property is
True, values input through the entry are wrapped around.Modifiers can be used during scrolling for smaller/bigger increments.
- classmethod new(adjustment, climb_rate, digits)¶
 - Parameters:
 adjustment (
Gtk.AdjustmentorNone) – theGtk.Adjustmentobject that this spin button should use, orNoneclimb_rate (
float) – specifies by how much the rate of change in the value will accelerate if you continue to hold down an up/down button or arrow keydigits (
int) – the number of decimal places to display
- Returns:
 The new spin button as a
Gtk.Widget- Return type:
 
Creates a new
GimpUi.SpinButton.New in version 2.10.10.
- classmethod new_with_range(min, max, step)¶
 - Parameters:
 - Returns:
 The new spin button as a
Gtk.Widget- Return type:
 
This is a convenience constructor that allows creation of a numeric
GimpUi.SpinButtonwithout manually creating an adjustment. The value is initially set to the minimum value and a page increment of 10 * step is the default. The precision of the spin button is equivalent to the precision of step.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.SpinButton.set_digits() to correct it.New in version 2.10.10.