SpinnerPaintable#

Added in version 1.6.

class SpinnerPaintable(**properties: Any)#

Superclasses: Object

Implemented Interfaces: Paintable, SymbolicPaintable

A paintable showing a loading spinner.

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

AdwSpinnerPaintable size varies depending on the available space, but is capped at 64×64 pixels.

To be able to animate, AdwSpinnerPaintable needs a widget. It will be animated according to that widget’s frame clock, and only if that widget is mapped. Ideally it should be the same widget the paintable is displayed in, but that’s not a requirement.

Most applications should be using Spinner instead. AdwSpinnerPaintable is provided for the cases where using a widget is impractical or impossible, such as paintable:

<object class="AdwStatusPage" id="status_page">
  <property name="paintable">
    <object class="AdwSpinnerPaintable">
      <property name="widget">status_page</property>
    </object>
  </property>
  <!-- ... -->
</object>

Constructors#

class SpinnerPaintable
classmethod new(widget: Widget | None = None) SpinnerPaintable#

Creates a new AdwSpinnerPaintable for widget.

Added in version 1.6.

Parameters:

widget – the widget used for frame clock

Methods#

class SpinnerPaintable
get_widget() Widget | None#

Gets the widget used for frame clock.

Added in version 1.6.

set_widget(widget: Widget | None = None) None#

Sets the widget used for frame clock.

Added in version 1.6.

Parameters:

widget – the widget to use for frame clock

Properties#

class SpinnerPaintable
props.widget: Widget#

The type of the None singleton.

Added in version 1.6.