:right-sidebar: True FileIcon =================================================================== .. currentmodule:: gi.repository.Gio .. class:: FileIcon(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gio.Icon`, :class:`~gi.repository.Gio.LoadableIcon` ``GFileIcon`` specifies an icon by pointing to an image file to be used as icon. It implements :obj:`~gi.repository.Gio.LoadableIcon`. Constructors ------------ .. rst-class:: interim-class .. class:: FileIcon :no-index: .. classmethod:: new(file: ~gi.repository.Gio.File) -> ~gi.repository.Gio.FileIcon Creates a new icon for a file. :param file: a :obj:`~gi.repository.Gio.File`. Methods ------- .. rst-class:: interim-class .. class:: FileIcon :no-index: .. method:: get_file() -> ~gi.repository.Gio.File Gets the :obj:`~gi.repository.Gio.File` associated with the given ``icon``. Properties ---------- .. rst-class:: interim-class .. class:: FileIcon :no-index: .. attribute:: props.file :type: ~gi.repository.Gio.File The type of the None singleton.