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
GtkCellRendererSpinnerrenders a spinning animation in a cell, very similar toGtkSpinner. It can often be used as an alternative to aGtkCellRendererProgressfor displaying indefinite activity, instead of actual progress.To start the animation in a cell, set the
GtkCellRendererSpinner:activeproperty toTrueand increment theGtkCellRendererSpinner: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().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:
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
GtkSpinnerwidget 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
GtkIconSizevalue that specifies the size of the rendered spinner.