Unity-5.0 Python API Documentation

Class: Unity.ActivationResponse

Properties

string"goto-uri"construct-only

Unity.HandledType"handled"construct-only

Constructors

 new(handled, goto_uri)

Class: Unity.AlbumPreview

Subclass of: Unity.Preview

Constructors

 new(name, artist, year, genres, genres_length1, album_cover, primary_action_name, primary_action_icon_hint, primary_action_uri)

Class: Unity.AppInfoManager

Signals

void"changed"(self, app_info_manager, id, new_appinfo)

Methods

voidclear()

Array<utf8>, intget_categories(id)

Unity.AppInfoManagerget_default()(static method)

Unity.AppInfoManagerget_instance()(static method)

Array<utf8>, intget_keywords(id)

stringget_path(id)

Gio.AppInfolookup(id)

voidlookup_async(id, _callback_, _callback__target)

Gio.AppInfolookup_finish(_res_)

Class: Unity.ApplicationPreview

Subclass of: Unity.Preview

Constructors

 new(name, version, size, license, last_updated, rating, n_ratings, description, icon_hint, screenshot_icon_hint, primary_action_name, primary_action_icon_hint, primary_action_uri)

Class: Unity.Category

Properties

string"name"construct-only

Gio.Icon"icon-hint"construct-only

Unity.CategoryRenderer"default-renderer"construct-only

Constructors

 new(name, icon_hint, renderer)

Class: Unity.CheckOptionFilter

Subclass of: Unity.OptionsFilter

Constructors

 new(id, display_name, icon_hint, collapsed)

Class: Unity.CheckOptionFilterCompact

Subclass of: Unity.OptionsFilter

Constructors

 new(id, display_name, icon_hint, collapsed)

Abstract Class: Unity.Filter

Known subclasses: Unity.RatingsFilter, Unity.OptionsFilter

Properties

bool"filtering"construct-only

bool"collapsed"construct-only

bool"visible"construct-only

Unity.FilterRenderer"renderer"construct-only

Gio.Icon"icon-hint"construct-only

string"display-name"construct-only

string"id"construct-only

Signals

void"changed"(self, filter)

Class: Unity.FilterOption

Properties

bool"active"construct-only

string"display-name"construct-only

string"id"construct-only

Gio.Icon"icon-hint"construct-only

Constructors

 new(id, display_name, icon_hint, active)

Class: Unity.GenericPreview

Subclass of: Unity.Preview

Constructors

 new(name, date_modified, size, type, description, large_icon_hint, primary_action_name, primary_action_icon_hint, primary_action_uri, secondary_action_name, secondary_action_icon_hint, secondary_action_uri, tertiary_action_name, tertiary_action_icon_hint, tertiary_action_uri)

Class: Unity.Inspector

Properties

bool"unity-running"read-only

string"unity-bus-name"read-only

Methods

Unity.Inspectorget_default()(static method)

Class: Unity.LauncherEntry

Implements: Dee.Serializable

Properties

int"count"read/write

bool"progress-visible"read/write

bool"count-visible"read/write

string"app-uri"construct-only

Dbusmenu.Menuitem"quicklist"read/write

bool"urgent"read/write

float"progress"read/write

Methods

Unity.LauncherEntryget_for_app_uri(app_uri)(static method)

Unity.LauncherEntryget_for_desktop_file(desktop_file)(static method)

Unity.LauncherEntryget_for_desktop_id(desktop_id)(static method)

Class: Unity.LauncherFavorites

Signals

void"changed"(self, launcher_favorites)

Methods

Array<Gio.AppInfo>, intenumerate_app_infos()

Array<utf8>, intenumerate_ids()

Unity.LauncherFavoritesget_default()(static method)

boolhas_app_id(app_id)

boolhas_app_info(appinfo)

Gio.AppInfolookup(app_id)

Class: Unity.Lens

Properties

Unity.MergeStrategy"global-merge-strategy"read/write

Unity.MergeStrategy"merge-strategy"read/write

bool"searching"read/write

string"search-hint"read/write

bool"visible"read/write

bool"search-in-global"read/write

bool"exported"read/write

GLib.List"filters"read/write

bool"active"read/write

string"dbus-path"construct-only

string"id"construct-only

GLib.List"categories"read/write

string"sources-display-name"construct-only

Constructors

 new(dbus_path_, id_)

Methods

voidadd_local_scope(scope)

voidexport()

Class: Unity.LensSearch

Properties

GLib.HashTable"hints"construct-only

Dee.SerializableModel"results-model"construct-only

string"search-string"construct-only

Signals

void"finished"(self, lens_search)

Constructors

 new(search_string, hints, results_model)

Methods

boolequals(other)

voidfinished()

voidset_reply_hint(key, variant)

Interface: Unity.MergeStrategy

Methods

Dee.ModelItermerge_result(target, row, row_length1)

Class: Unity.MultiRangeFilter

Subclass of: Unity.OptionsFilter

Constructors

 new(id, display_name, icon_hint, collapsed)

Methods

Unity.FilterOptionget_first_active()

Unity.FilterOptionget_last_active()

Class: Unity.MusicPlayer

Properties

bool"can-play"read/write

Unity.Playlist"current-playlist"read/write

Gio.AppInfo"app-info"construct-only

bool"can-go-next"read/write

string"title"read/write

bool"can-go-previous"read/write

bool"can-pause"read/write

bool"is-blacklisted"read/write

Dbusmenu.Menuitem"track-menu"read/write

string"desktop-file-name"construct-only

Unity.TrackMetadata"current-track"read/write

Unity.PlaybackState"playback-state"read/write

Dbusmenu.Menuitem"player-menu"read/write

Signals

void"activate_playlist"(self, music_player, playlist_id)

void"next"(self, music_player)

void"previous"(self, music_player)

void"raise"(self, music_player)

void"play_pause"(self, music_player)

Constructors

 new(desktop)

Methods

booladd_playlist(p)

voidedit_playlist_name(id, name)

voidexport()

Array<Unity.Playlist>, intget_playlists()

boolremove_playlist(p)

voidunexport()

Class: Unity.NoPreview

Subclass of: Unity.Preview

Constructors

 new()

Class: Unity.OptionsFilter

Known subclasses: Unity.RadioOptionFilter, Unity.CheckOptionFilterCompact, Unity.CheckOptionFilter, Unity.MultiRangeFilter

Subclass of: Unity.Filter

Properties

Unity.OptionsFilterSortType"sort-type"read/write

Constructors

 new()

Methods

Unity.FilterOptionadd_option(id, display_name, icon_hint)

Unity.FilterOptionget_option(id)

boolremove_option(id)

Class: Unity.Playlist

Properties

string"name"read/write

GLib.DateTime"last-play-date"read/write

GLib.DateTime"creation-date"read/write

GLib.DateTime"modification-date"read/write

string"id"construct-only

Gio.Icon"icon"read/write

Constructors

 new(id)

Abstract Class: Unity.Preview

Known subclasses: Unity.NoPreview, Unity.TrackPreview, Unity.GenericPreview, Unity.ApplicationPreview, Unity.AlbumPreview

Class: Unity.RadioOptionFilter

Subclass of: Unity.OptionsFilter

Constructors

 new(id, display_name, icon_hint, collapsed)

Methods

Unity.FilterOptionget_active_option()

Class: Unity.RatingsFilter

Subclass of: Unity.Filter

Properties

float"rating"construct-only

Constructors

 new(id, display_name, icon_hint, collapsed)

Class: Unity.Scope

Properties

Unity.OptionsFilter"sources"read/write

bool"search-in-global"read/write

bool"exported"read/write

GLib.List"filters"read-only

Dee.SerializableModel"results-model"read-only

bool"active"read/write

Dee.SerializableModel"global-results-model"read-only

string"dbus-path"construct-only

Signals

void"search_changed"(self, scope, search, search_type, cancellable)

Unity.Preview"previ

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.