gio.LoadableIconInterface for icons.Synopsisgio.LoadableIcongobject.GInterfaceloadsize0cancellableNoneload_asynccallbacksize0cancellableNoneuser_dataNoneload_finishresAncestry+-- gobject.GInterface
+-- gio.LoadableIcon
Prerequisitesgio.LoadableIcon requires
gio.Icon. and
gobject.GObjectKnown Implementationgio.LoadableIcon is implemented by
gio.FileIconDescriptiongio.LoadableIcon
extends the gio.Icon
interface and adds the ability to load icons from streams.
Methodsgio.LoadableIcon.loadloadsize0cancellableNonesize :an integer
cancellable :optional
gio.Cancellable
object, None to ignore.
Returns :a 2 tuple containing a
gio.InputStream
to read the icon from and a string containing the icon type.
The load() method loads a loadable icon.
For the asynchronous version of this function, see
gio.LoadableIcon.load_async().
gio.LoadableIcon.load_asyncload_asynccallbacksize0cancellableNoneuser_dataNonecallback :a GAsyncReadyCallback to call when the request is satisfied.
size :an integer
cancellable :optional
gio.Cancellable
object, None to ignore.
user_data :the data to pass to callback function.
The load_async() method loads an icon asynchronously.
For more details, see
gio.LoadableIcon.load()
which is the synchronous version of this call.
When the operation is finished, callback will be called. You can then call
gio.LoadableIcon.load_finish()
to get the result of the operation.
gio.LoadableIcon.load_finishload_finishresres :a
gio.AsyncResult.
Returns :a 2 tuple containing a
gio.InputStream
to read the icon from and a string containing the icon type.
The load_finish() method finishes an asynchronous
icon load started in
gio.LoadableIcon.load_async().