Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (24 sloc) 882 Bytes
The :class:`Gtk.Spinner` displays an icon-size spinning animation.
It is often used as an alternative to a :class:`GtkProgressBar`
for displaying indefinite activity, instead of actual progress.
To start the animation, use :meth:`Gtk.Spinner.start`,
to stop it use :meth:`Gtk.Spinner.stop`.
.. image:: ../images/spinner_example.png
.. literalinclude:: ../examples/
Extended example
An extended example that uses a timeout function to start and stop
the spinning animation.
The :func:`on_timeout` function is called at regular intervals
until it returns ``False``, at which point the timeout is automatically
destroyed and the function will not be called again.
.. image:: ../images/spinner_ext_example.png
.. literalinclude:: ../examples/
You can’t perform that action at this time.