Gtk.CellRendererSpin¶
- Subclasses:
 None
Methods¶
- Inherited:
 Gtk.CellRendererText (2), Gtk.CellRenderer (25), GObject.Object (37)
- Structs:
 
class  | 
  | 
Virtual Methods¶
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
The adjustment that holds the value of the spin button  | 
||
r/w  | 
The acceleration rate when you hold down a button  | 
||
r/w/en  | 
The number of decimal places to display  | 
Signals¶
Fields¶
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class Gtk.CellRendererSpin(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Gtk.CellRendererSpinrenders text in a cell likeGtk.CellRendererTextfrom which it is derived. But whileGtk.CellRendererTextoffers a simple entry to edit the text,Gtk.CellRendererSpinoffers aGtk.SpinButtonwidget. Of course, that means that the text has to be parseable as a floating point number.The range of the spinbutton is taken from the adjustment property of the cell renderer, which can be set explicitly or mapped to a column in the tree model, like all properties of cell renders.
Gtk.CellRendererSpinalso has properties for theGtk.CellRendererSpin:climb-rateand the number ofGtk.CellRendererSpin:digitsto display. OtherGtk.SpinButtonproperties can be set in a handler for theGtk.CellRenderer::editing-startedsignal.The
Gtk.CellRendererSpincell renderer was added in GTK+ 2.10.- classmethod new()[source]¶
 - Returns:
 a new
Gtk.CellRendererSpin- Return type:
 
Creates a new
Gtk.CellRendererSpin.New in version 2.10.
Property Details¶
- Gtk.CellRendererSpin.props.adjustment¶
 - Name:
 adjustment- Type:
 - Default Value:
 - Flags:
 
The adjustment that holds the value of the spinbutton. This must be non-
Nonefor the cell renderer to be editable.New in version 2.10.
- Gtk.CellRendererSpin.props.climb_rate¶
 - 
The acceleration rate when you hold down a button.
New in version 2.10.
 
- Gtk.CellRendererSpin.props.digits¶
 - Name:
 digits- Type:
 - Default Value:
 0- Flags:
 
The number of decimal places to display.
New in version 2.10.