Gtk.CellRendererSpinner¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/en  | 
Whether the spinner is active (ie. shown) in the cell  | 
||
r/w/en  | 
Pulse of the spinner  | 
||
r/w/en  | 
The   | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class Gtk.CellRendererSpinner(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Gtk.CellRendererSpinnerrenders a spinning animation in a cell, very similar toGtk.Spinner. It can often be used as an alternative to aGtk.CellRendererProgressfor displaying indefinite activity, instead of actual progress.To start the animation in a cell, set the
Gtk.CellRendererSpinner:activeproperty toTrueand increment theGtk.CellRendererSpinner:pulseproperty at regular intervals. The usual way to set the cell renderer properties for each cell is to bind them to columns in your tree model using e.g.Gtk.TreeViewColumn.add_attribute().- classmethod new()[source]¶
 - Returns:
 a new
Gtk.CellRenderer- Return type:
 
Returns a new cell renderer which will show a spinner to indicate activity.
New in version 2.20.
Property Details¶
- Gtk.CellRendererSpinner.props.active¶
 - Name:
 active- Type:
 - Default Value:
 - Flags:
 
Whether the spinner is active (ie. shown) in the cell
- Gtk.CellRendererSpinner.props.pulse¶
 - Name:
 pulse- Type:
 - Default Value:
 0- Flags:
 
Pulse of the spinner. Increment this value to draw the next frame of the spinner animation. Usually, you would update this value in a timeout.
By default, the
Gtk.Spinnerwidget draws one full cycle of the animation, consisting of 12 frames, in 750 milliseconds.New in version 2.20.
- Gtk.CellRendererSpinner.props.size¶
 - Name:
 size- Type:
 - Default Value:
 - Flags:
 
The
Gtk.IconSizevalue that specifies the size of the rendered spinner.New in version 2.20.