Gtk.CellRendererSpin¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.CellRendererText (2), Gtk.CellRenderer (27), GObject.Object (37)
- Structs:
class |
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
|||
r/w |
|||
r/w/en |
Signals¶
Fields¶
Class Details¶
- class Gtk.CellRendererSpin(**kwargs)¶
- Bases:
- Abstract:
No
Renders a spin button in a cell
GtkCellRendererSpin
renders text in a cell likeGtkCellRendererText
from which it is derived. But whileGtkCellRendererText
offers a simple entry to edit the text,GtkCellRendererSpin
offers aGtkSpinButton
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.
GtkCellRendererSpin
also has properties for theGtkCellRendererSpin:climb-rate
and the number ofGtkCellRendererSpin:digits
to display. OtherGtkSpinButton
properties can be set in a handler for theGtkCellRenderer::editing-started
signal.Deprecated since version 4.10: List views use widgets to display their contents. You should use [class`Gtk`.SpinButton] instead
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.
- Gtk.CellRendererSpin.props.climb_rate¶
-
The acceleration rate when you hold down a button.
- Gtk.CellRendererSpin.props.digits¶
- Name:
digits
- Type:
- Default Value:
0
- Flags:
The number of decimal places to display.