Gtk.Spinner

g GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.Spinner Gtk.Spinner Gtk.Widget->Gtk.Spinner

Example

../_images/Spinner.png
Subclasses:

None

Methods

Inherited:

Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)

Structs:

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

class

new ()

get_spinning ()

set_spinning (spinning)

start ()

stop ()

Virtual Methods

Inherited:

Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)

Properties

Inherited:

Gtk.Widget (34), Gtk.Accessible (1)

Name

Type

Flags

Short Description

spinning

bool

r/w/en

Signals

Inherited:

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

Fields

Inherited:

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

Class Details

class Gtk.Spinner(**kwargs)
Bases:

Gtk.Widget

Abstract:

No

A GtkSpinner widget displays an icon-size spinning animation.

It is often used as an alternative to a [class`Gtk`.ProgressBar] for displaying indefinite activity, instead of actual progress.

An example Gtk.Spinner

To start the animation, use [method`Gtk`.Spinner.start], to stop it use [method`Gtk`.Spinner.stop].

CSS nodes

GtkSpinner 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 GtkSpinner

Return type:

Gtk.Widget

Returns a new spinner widget. Not yet started.

get_spinning()[source]
Returns:

True if the spinner is active

Return type:

bool

Returns whether the spinner is spinning.

set_spinning(spinning)[source]
Parameters:

spinning (bool) – whether the spinner should be spinning

Sets the activity of the spinner.

start()[source]

Starts the animation of the spinner.

stop()[source]

Stops the animation of the spinner.

Property Details

Gtk.Spinner.props.spinning
Name:

spinning

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Whether the spinner is spinning