:right-sidebar: True Spinner =================================================================== .. currentmodule:: gi.repository.Adw .. versionadded:: 1.6 .. class:: Spinner(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.Widget`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gtk.Accessible`, :class:`~gi.repository.Gtk.Buildable`, :class:`~gi.repository.Gtk.ConstraintTarget` A widget showing a loading spinner. .. image:: 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 :obj:`~gi.repository.Gtk.Widget.props.halign` and :obj:`~gi.repository.Gtk.Widget.props.valign` properties in combination with :obj:`~gi.repository.Gtk.Widget.props.width_request` and :obj:`~gi.repository.Gtk.Widget.props.height_request` for fine sizing control. For example, the following snippet shows the spinner at 48×48 pixels: .. code-block:: xml :dedent: center center 48 48 See :obj:`~gi.repository.Adw.SpinnerPaintable` for cases where using a widget is impractical or impossible, such as :obj:`~gi.repository.Adw.StatusPage.props.paintable`\. CSS nodes -------------------------------------------------------------------------------- ``AdwSpinner`` has a single node with the name ``image`` and the style class ``.spinner``\. Constructors ------------ .. rst-class:: interim-class .. class:: Spinner :no-index: .. classmethod:: new() -> ~gi.repository.Gtk.Widget Creates a new ``AdwSpinner``\. .. versionadded:: 1.6