Adw.Spinner

g Adw.Spinner Adw.Spinner GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.Widget->Adw.Spinner

Subclasses:

None

Methods

Inherited:

Gtk.Widget (183), GObject.Object (37), Gtk.Accessible (17), Gtk.Buildable (1)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new ()

Virtual Methods

Inherited:

Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)

Properties

Inherited:

Gtk.Widget (35), Gtk.Accessible (1)

Signals

Inherited:

Gtk.Widget (13), GObject.Object (1)

Fields

Inherited:

Gtk.Widget (13), GObject.Object (1)

Class Details

class Adw.Spinner(**kwargs)
Bases:

Gtk.Widget

Abstract:

No

Structure:

Adw.SpinnerClass

A widget showing a loading spinner.

<picture> <source srcset=”spinner-dark.png” media=”(prefers-color-scheme: dark)”> <img src=”spinner.png” alt=”spinner”> </picture>

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 [property`Gtk`.Widget:halign] and [property`Gtk`.Widget:valign] properties in combination with [property`Gtk`.Widget:width-request] and [property`Gtk`.Widget:height-request] for fine sizing control.

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

``xml <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 [class`SpinnerPaintable`] for cases where using a widget is impractical or impossible, such as [property`StatusPage`:py:data::paintable<Adw.Spinner.props.paintable>].

CSS nodes

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

New in version 1.6.

classmethod new()
Returns:

the newly created AdwSpinner

Return type:

Gtk.Widget

Creates a new AdwSpinner.

New in version 1.6.