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
GtkCellRendererSpinrenders text in a cell likeGtkCellRendererTextfrom which it is derived. But whileGtkCellRendererTextoffers a simple entry to edit the text,GtkCellRendererSpinoffers aGtkSpinButtonwidget. 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.
GtkCellRendererSpinalso has properties for theGtkCellRendererSpin:climb-rateand the number ofGtkCellRendererSpin:digitsto display. OtherGtkSpinButtonproperties can be set in a handler for theGtkCellRenderer::editing-startedsignal.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-
Nonefor 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.