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.CellRendererSpin
renders text in a cell likeGtk.CellRendererText
from which it is derived. But whileGtk.CellRendererText
offers a simple entry to edit the text,Gtk.CellRendererSpin
offers aGtk.SpinButton
widget. 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.CellRendererSpin
also has properties for theGtk.CellRendererSpin
:climb-rate
and the number ofGtk.CellRendererSpin
:digits
to display. OtherGtk.SpinButton
properties can be set in a handler for theGtk.CellRenderer
::editing-started
signal.The
Gtk.CellRendererSpin
cell 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-
None
for 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.