Skip to content

Gio.FileIcon

class — extends GObject.Object, Icon, LoadableIcon

GFileIcon specifies an icon by pointing to an image file to be used as icon.

It implements LoadableIcon.

Constructors

new

@classmethod
def new(cls, file: File) -> FileIcon

Creates a new icon for a file.

Parameters:

Methods

get_file

def get_file(self) -> File

Gets the File associated with the given icon.

Properties

file

file: File  # read/write

The file containing the icon.