gtk.CellRendererSpin — an object that renders a spin button in a cell (new in PyGTK 2.10)
+--gobject.GObject +-- gtk.Object +-- gtk.CellRenderer +-- gtk.CellRendererText +-- gtk.CellRendererSpin
gtk.CellRendererText Properties
|
gtk.CellRendererSpin
renders text in a cell like gtk.CellRendererText
from which it is derived. But while gtk.CellRendererText
offers a simple entry to edit the text, gtk.CellRendererSpin
offers a gtk.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 cellrenderers. gtk.CellRendererSpin
also has properties for the "climb-rate" and the number of "digits" to
display. Other gtk.SpinButton
properties can be set in a handler for the "gtk.CellRenderer.editing-started"
signal.
gtk.CellRendererSpin()
Returns : | a new gtk.CellRendererSpin |
This constructor is available in PyGTK 2.10 and above.
Creates a new gtk.CellRendererSpin
.