RB.FadingImage

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 RB.FadingImage RB.FadingImage Gtk.Widget->RB.FadingImage

Subclasses:None

Properties

Inherited:Gtk.Widget (39)
Name Type Flags Short Description
fallback str r/w/co fallback icon name
use-tooltip bool r/w/co use tooltip

Style Properties

Inherited:Gtk.Widget (17)

Signals

Inherited:Gtk.Widget (69), GObject.Object (1)
Name Short Description
pixbuf-dropped Emitted when an image is dragged and dropped on the image
uri-dropped Emitted when a URI is dragged and dropped on the image

Fields

Inherited:Gtk.Widget (69), GObject.Object (1)
Name Type Access Description
parent Gtk.Widget r  

Class Details

class RB.FadingImage(**kwargs)
Bases:Gtk.Widget
Abstract:No
Structure:RB.FadingImageClass
set_pixbuf(pixbuf)
Parameters:pixbuf (GdkPixbuf.Pixbuf or None) – the next pixbuf to display

Sets the next image to be displayed.

start(duration)
Parameters:duration (int) – length of fade in milliseconds

Starts fading to the next image. If no next image has been supplied, the fallback image will be used instead. If the next image has been supplied, but has not finished loading yet, the fade will be delayed until it finishes. If the previous fade has not yet finished, something tricky happens.

Signal Details

RB.FadingImage.signals.pixbuf_dropped(fading_image, pixbuf)
Signal Name:

pixbuf-dropped

Flags:

RUN_LAST

Parameters:

Emitted when an image is dragged and dropped on the image

RB.FadingImage.signals.uri_dropped(fading_image, uri)
Signal Name:

uri-dropped

Flags:

RUN_LAST

Parameters:
  • fading_image (RB.FadingImage) – The object which received the signal
  • uri (str) – the URI that was dropped

Emitted when a URI is dragged and dropped on the image

Property Details

RB.FadingImage.props.fallback
Name:fallback
Type:str
Default Value:None
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

Name of an icon to display when no image is available.

RB.FadingImage.props.use_tooltip
Name:use-tooltip
Type:bool
Default Value:True
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

Whether to display a tooltip on the image