:right-sidebar: True CellRendererSpinner =================================================================== .. currentmodule:: gi.repository.Gtk .. deprecated:: 4.10 List views use widgets to display their contents. You should use :obj:`~gi.repository.Gtk.Spinner` instead .. class:: CellRendererSpinner(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.CellRenderer`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` Renders a spinning animation in a cell ``GtkCellRendererSpinner`` renders a spinning animation in a cell, very similar to ``GtkSpinner``. It can often be used as an alternative to a ``GtkCellRendererProgress`` for displaying indefinite activity, instead of actual progress. To start the animation in a cell, set the ``GtkCellRendererSpinner:active`` property to :const:`True` and increment the ``GtkCellRendererSpinner:pulse`` property at regular intervals. The usual way to set the cell renderer properties for each cell is to bind them to columns in your tree model using e.g. :func:`~gi.repository.Gtk.TreeViewColumn.add_attribute`. Constructors ------------ .. rst-class:: interim-class .. class:: CellRendererSpinner :no-index: .. classmethod:: new() -> ~gi.repository.Gtk.CellRenderer Returns a new cell renderer which will show a spinner to indicate activity. .. deprecated:: 4.10 Please do not use it in newly written code Properties ---------- .. rst-class:: interim-class .. class:: CellRendererSpinner :no-index: .. attribute:: props.active :type: bool .. attribute:: props.pulse :type: int Pulse of the spinner. Increment this value to draw the next frame of the spinner animation. Usually, you would update this value in a timeout. By default, the ``GtkSpinner`` widget draws one full cycle of the animation, consisting of 12 frames, in 750 milliseconds. .. attribute:: props.size :type: ~gi.repository.Gtk.IconSize The ``GtkIconSize`` value that specifies the size of the rendered spinner.