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.CellRendererSpinner
renders a spinning animation in a cell, very similar toGtk.Spinner
. It can often be used as an alternative to aGtk.CellRendererProgress
for displaying indefinite activity, instead of actual progress.To start the animation in a cell, set the
Gtk.CellRendererSpinner
:active
property toTrue
and increment theGtk.CellRendererSpinner
:pulse
property 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.Spinner
widget 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.IconSize
value that specifies the size of the rendered spinner.New in version 2.20.