Icon#

class ignis.widgets.Widget.Icon(pixel_size: int = -1, **kwargs)#

Bases: Gtk.Image

A widget that displays images or icons in a 1:1 ratio.

If you want to display an image at its native aspect ratio, see Picture.

Parameters:

**kwargs -- Properties to set.

Widget.Icon(
    image='audio-volume-high',
    pixel_size=12
)
gproperty image: str | GdkPixbuf.Pixbuf | None#
  • read-write

The icon name, path to the file, or a GdkPixbuf.Pixbuf.