CellRendererSpinner#

Deprecated since version 4.10: List views use widgets to display their contents. You should use Spinner instead

class CellRendererSpinner(**properties: Any)#

Superclasses: CellRenderer, InitiallyUnowned, Object

Renders a spinning animation in a cell

GtkCellRendererSpinner renders a spinning animation in a cell, very similar to GtkSpinner. It can often be used as an alternative to a GtkCellRendererProgress for displaying indefinite activity, instead of actual progress.

To start the animation in a cell, set the GtkCellRendererSpinner:active property to True and increment the GtkCellRendererSpinner: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. add_attribute().

Constructors#

class CellRendererSpinner
classmethod new() CellRenderer#

Returns a new cell renderer which will show a spinner to indicate activity.

Deprecated since version 4.10: Please do not use it in newly written code

Properties#

class CellRendererSpinner
props.active: bool#

Whether the spinner is active (ie. shown) in the cell

props.pulse: int#

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.

props.size: IconSize#

The GtkIconSize value that specifies the size of the rendered spinner.