GtkCellRendererSpin

Renders a spin button in a cell

gtk.cell_renderer_spin.CellRendererSpin renders text in a cell like gtk.cell_renderer_text.CellRendererText from which it is derived. But while gtk.cell_renderer_text.CellRendererText offers a simple entry to edit the text, gtk.cell_renderer_spin.CellRendererSpin offers a gtk.spin_button.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.cell_renderer_spin.CellRendererSpin also has properties for the GtkCellRendererSpin:climb-rate and the number of GtkCellRendererSpin:digits to display. Other gtk.spin_button.SpinButton properties can be set in a handler for the GtkCellRenderer::editing-started signal.

More...
struct GtkCellRendererSpin

Detailed Description

Deprecated: List views use widgets to display their contents. You should use gtk.spin_button.SpinButton instead