Gtk.CellRendererSpinner¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
|||
r/w/en |
|||
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.CellRendererSpinner(**kwargs)¶
- Bases:
- Abstract:
No
Renders a spinning animation in a cell
GtkCellRendererSpinner
renders a spinning animation in a cell, very similar toGtkSpinner
. It can often be used as an alternative to aGtkCellRendererProgress
for displaying indefinite activity, instead of actual progress.To start the animation in a cell, set the
GtkCellRendererSpinner:active
property toTrue
and increment theGtkCellRendererSpinner: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
().Deprecated since version 4.10: List views use widgets to display their contents. You should use [class`Gtk`.Spinner] instead
Property Details¶
- Gtk.CellRendererSpinner.props.active¶
- Name:
active
- Type:
- Default Value:
- Flags:
- 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
GtkSpinner
widget draws one full cycle of the animation, consisting of 12 frames, in 750 milliseconds.
- Gtk.CellRendererSpinner.props.size¶
- Name:
size
- Type:
- Default Value:
- Flags:
The
GtkIconSize
value that specifies the size of the rendered spinner.