gtk.uri_launcher
Module for UriLauncher class
Types 3
A gtk.uri_launcher.UriLauncher object collects the arguments that are needed to open a uri with an application.
Depending on system configuration, user preferences and available APIs, this may or may not show an app chooser dialog or launch the default application right away.
The operation is started with the gtk.uri_launcher.UriLauncher.launch function. This API follows the GIO async pattern, and the result can be obtained by calling gtk.uri_launcher.UriLauncher.launchFinish.
To launch a file, use gtk.file_launcher.FileLauncher.
Methods
UriLauncher self()Returns `this`, for use in `with` statements.UriLauncherGidBuilder builder()Get builder for [gtk.uri_launcher.UriLauncher] Returns: New builder objectstring getUri()Gets the uri that will be opened. Returns: the urivoid launch(gtk.window.Window parent = null, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Launch an application to open the uri.bool launchFinish(gio.async_result.AsyncResult result)Finishes the [gtk.uri_launcher.UriLauncher.launch] call and returns the result.void setUri(string uri = null)Sets the uri that will be opened.Fluent builder implementation template for gtk.uri_launcher.UriLauncher
Methods
T uri(string propval)Set `uri` property. Params: propval = The uri to launch. Returns: Builder instance for fluent chainingFluent builder for gtk.uri_launcher.UriLauncher
Methods
UriLauncher build()Create object from builder. Returns: New object