Spinner#

Added in version 1.6.

class Spinner(**properties: Any)#

Superclasses: Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Buildable, ConstraintTarget

A widget showing a loading spinner.

https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1-latest/spinner.png

The size of the spinner depends on the available size, never smaller than 16×16 pixels and never larger than 64×64 pixels.

Use the halign and valign properties in combination with width_request and height_request for fine sizing control.

For example, the following snippet shows the spinner at 48×48 pixels:

<object class="AdwSpinner">
  <property name="halign">center</property>
  <property name="valign">center</property>
  <property name="width-request">48</property>
  <property name="height-request">48</property>
</object>

See SpinnerPaintable for cases where using a widget is impractical or impossible, such as paintable.

CSS nodes#

AdwSpinner has a single node with the name image and the style class .spinner.

Constructors#

class Spinner
classmethod new() Widget#

Creates a new AdwSpinner.

Added in version 1.6.