Spinner#

class Spinner(**properties: Any)#

Superclasses: Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Buildable, ConstraintTarget

A GtkSpinner widget displays an icon-size spinning animation.

It is often used as an alternative to a ProgressBar for displaying indefinite activity, instead of actual progress.

https://docs.gtk.org/gtk4/spinner.png

To start the animation, use start, to stop it use stop.

CSS nodes#

GtkSpinner has a single CSS node with the name spinner. When the animation is active, the :checked pseudoclass is added to this node.

Constructors#

class Spinner
classmethod new() Widget#

Returns a new spinner widget. Not yet started.

Methods#

class Spinner
get_spinning() bool#

Returns whether the spinner is spinning.

set_spinning(spinning: bool) None#

Sets the activity of the spinner.

Parameters:

spinning – whether the spinner should be spinning

start() None#

Starts the animation of the spinner.

stop() None#

Stops the animation of the spinner.

Properties#

class Spinner
props.spinning: bool#

The type of the None singleton.