Gtk.CellRendererSpinner

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.CellRenderer Gtk.CellRenderer GObject.InitiallyUnowned->Gtk.CellRenderer GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.CellRendererSpinner Gtk.CellRendererSpinner Gtk.CellRenderer->Gtk.CellRendererSpinner

Subclasses:

None

Methods

Inherited:

Gtk.CellRenderer (25), GObject.Object (37)

Structs:

Gtk.CellRendererClass (1), GObject.ObjectClass (5)

class

new ()

Virtual Methods

Inherited:

Gtk.CellRenderer (12), GObject.Object (7)

Properties

Inherited:

Gtk.CellRenderer (16)

Name

Type

Flags

Short Description

active

bool

r/w/en

Whether the spinner is active (ie. shown) in the cell

pulse

int

r/w/en

Pulse of the spinner

size

Gtk.IconSize

r/w/en

The Gtk.IconSize value that specifies the size of the rendered spinner

Signals

Inherited:

Gtk.CellRenderer (2), GObject.Object (1)

Fields

Inherited:

Gtk.CellRenderer (2), GObject.Object (1)

Name

Type

Access

Description

parent

Gtk.CellRenderer

r

Class Details

class Gtk.CellRendererSpinner(**kwargs)
Bases:

Gtk.CellRenderer

Abstract:

No

Structure:

Gtk.CellRendererSpinnerClass

Gtk.CellRendererSpinner renders a spinning animation in a cell, very similar to Gtk.Spinner. It can often be used as an alternative to a Gtk.CellRendererProgress for displaying indefinite activity, instead of actual progress.

To start the animation in a cell, set the Gtk.CellRendererSpinner :active property to True and increment the Gtk.CellRendererSpinner :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. Gtk.TreeViewColumn.add_attribute().

classmethod new()[source]
Returns:

a new Gtk.CellRenderer

Return type:

Gtk.CellRenderer

Returns a new cell renderer which will show a spinner to indicate activity.

New in version 2.20.

Property Details

Gtk.CellRendererSpinner.props.active
Name:

active

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Whether the spinner is active (ie. shown) in the cell

Gtk.CellRendererSpinner.props.pulse
Name:

pulse

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

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 Gtk.Spinner widget draws one full cycle of the animation, consisting of 12 frames, in 750 milliseconds.

New in version 2.20.

Gtk.CellRendererSpinner.props.size
Name:

size

Type:

Gtk.IconSize

Default Value:

Gtk.IconSize.MENU

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The Gtk.IconSize value that specifies the size of the rendered spinner.

New in version 2.20.