BytesIcon

Added in version 2.38.

class BytesIcon(**properties: Any)

Superclasses: Object

Implemented Interfaces: Icon, LoadableIcon

GBytesIcon specifies an image held in memory in a common format (usually PNG) to be used as icon.

Constructors

class BytesIcon
classmethod new(bytes: Bytes) BytesIcon

Creates a new icon for a bytes.

This cannot fail, but loading and interpreting the bytes may fail later on (for example, if load() is called) if the image is invalid.

Added in version 2.38.

Parameters:

bytes – a Bytes.

Methods

class BytesIcon
get_bytes() Bytes

Gets the Bytes associated with the given icon.

Added in version 2.38.

Properties

class BytesIcon
props.bytes: Bytes

The bytes containing the icon.