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 (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

Virtual Methods

Inherited:

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

Properties

Inherited:

Gtk.CellRenderer (15)

Name

Type

Flags

Short Description

active

bool

r/w/en

pulse

int

r/w/en

size

Gtk.IconSize

r/w/en

Signals

Inherited:

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

Fields

Inherited:

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

Class Details

class Gtk.CellRendererSpinner(**kwargs)
Bases:

Gtk.CellRenderer

Abstract:

No

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 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. Gtk.TreeViewColumn.add_attribute().

Deprecated since version 4.10: List views use widgets to display their contents. You should use [class`Gtk`.Spinner] instead

classmethod new()[source]
Returns:

a new GtkCellRenderer

Return type:

Gtk.CellRenderer

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

Deprecated since version 4.10.

Property Details

Gtk.CellRendererSpinner.props.active
Name:

active

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

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

Gtk.CellRendererSpinner.props.size
Name:

size

Type:

Gtk.IconSize

Default Value:

Gtk.IconSize.INHERIT

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The GtkIconSize value that specifies the size of the rendered spinner.