Gtk.Spinner

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Buildable->Gtk.Widget Gtk.Spinner Gtk.Spinner Gtk.Widget->Gtk.Spinner

Example

../_images/Spinner.png
Subclasses:

None

Methods

Inherited:

Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)

Structs:

Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new ()

start ()

stop ()

Virtual Methods

Inherited:

Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Widget (39)

Name

Type

Flags

Short Description

active

bool

r/w/en

Whether the spinner is active

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent

Gtk.Widget

r

Class Details

class Gtk.Spinner(**kwargs)
Bases:

Gtk.Widget

Abstract:

No

Structure:

Gtk.SpinnerClass

A Gtk.Spinner widget displays an icon-size spinning animation. It is often used as an alternative to a Gtk.ProgressBar for displaying indefinite activity, instead of actual progress.

To start the animation, use Gtk.Spinner.start(), to stop it use Gtk.Spinner.stop().

CSS nodes

Gtk.Spinner has a single CSS node with the name spinner. When the animation is active, the :checked pseudoclass is added to this node.

classmethod new()[source]
Returns:

a new Gtk.Spinner

Return type:

Gtk.Widget

Returns a new spinner widget. Not yet started.

New in version 2.20.

start()[source]

Starts the animation of the spinner.

New in version 2.20.

stop()[source]

Stops the animation of the spinner.

New in version 2.20.

Property Details

Gtk.Spinner.props.active
Name:

active

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Whether the spinner is active