:right-sidebar: True FileList =================================================================== .. currentmodule:: gi.repository.Gdk .. versionadded:: 4.6 .. class:: FileList(*args, **kwargs) :no-contents-entry: An opaque type representing a list of files. Constructors ------------ .. rst-class:: interim-class .. class:: FileList :no-index: .. classmethod:: new_from_array(files: list[~gi.repository.Gio.File]) -> ~gi.repository.Gdk.FileList Creates a new ``GdkFileList`` for the given array of files. This function is meant to be used by language bindings. .. versionadded:: 4.8 :param files: the files to add to the list .. classmethod:: new_from_list(files: list[~gi.repository.Gio.File]) -> ~gi.repository.Gdk.FileList Creates a new files list container from a singly linked list of ``GFile`` instances. This function is meant to be used by language bindings .. versionadded:: 4.8 :param files: a list of files Methods ------- .. rst-class:: interim-class .. class:: FileList :no-index: .. method:: get_files() -> list[~gi.repository.Gio.File] Retrieves the list of files inside a ``GdkFileList``\. This function is meant for language bindings. .. versionadded:: 4.6