:right-sidebar: True SpinnerPaintable =================================================================== .. currentmodule:: gi.repository.Adw .. versionadded:: 1.6 .. class:: SpinnerPaintable(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gdk.Paintable`, :class:`~gi.repository.Gtk.SymbolicPaintable` A paintable showing a loading spinner. .. image:: 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 :obj:`~gi.repository.Adw.Spinner` instead. ``AdwSpinnerPaintable`` is provided for the cases where using a widget is impractical or impossible, such as :obj:`~gi.repository.Adw.StatusPage.props.paintable`\: .. code-block:: xml :dedent: status_page Constructors ------------ .. rst-class:: interim-class .. class:: SpinnerPaintable :no-index: .. classmethod:: new(widget: ~gi.repository.Gtk.Widget | None = None) -> ~gi.repository.Adw.SpinnerPaintable Creates a new ``AdwSpinnerPaintable`` for ``widget``\. .. versionadded:: 1.6 :param widget: the widget used for frame clock Methods ------- .. rst-class:: interim-class .. class:: SpinnerPaintable :no-index: .. method:: get_widget() -> ~gi.repository.Gtk.Widget | None Gets the widget used for frame clock. .. versionadded:: 1.6 .. method:: set_widget(widget: ~gi.repository.Gtk.Widget | None = None) -> None Sets the widget used for frame clock. .. versionadded:: 1.6 :param widget: the widget to use for frame clock Properties ---------- .. rst-class:: interim-class .. class:: SpinnerPaintable :no-index: .. attribute:: props.widget :type: ~gi.repository.Gtk.Widget The type of the None singleton. .. versionadded:: 1.6