sublime_music.ui.common package
Submodules
Module contents
- class sublime_music.ui.common.AlbumWithSongs(album, cover_art_size=200, show_artist_name=True)[source]
Bases:
gi.overrides.Gtk.Box
- Parameters
album (sublime_music.adapters.api_objects.Album) –
cover_art_size (int) –
show_artist_name (bool) –
- __init__(album, cover_art_size=200, show_artist_name=True)[source]
Initializer for a GObject based classes with support for property sets through the use of explicit keyword arguments.
- Parameters
album (sublime_music.adapters.api_objects.Album) –
cover_art_size (int) –
show_artist_name (bool) –
- offline_mode = True
- update(app_config=None, force=False)[source]
- Parameters
app_config (Optional[sublime_music.config.AppConfiguration]) –
force (bool) –
- update_album_songs(album, app_config, force=False, order_token=None, is_partial=False)[source]
- Parameters
album (sublime_music.adapters.api_objects.Album) –
app_config (Optional[sublime_music.config.AppConfiguration]) –
force (bool) –
is_partial (bool) –
- class sublime_music.ui.common.IconButton(icon_name, tooltip_text='', relief=False, icon_size=<enum GTK_ICON_SIZE_BUTTON of type Gtk.IconSize>, label=None, **kwargs)[source]
Bases:
gi.overrides.Gtk.Button
- Parameters
- class sublime_music.ui.common.IconMenuButton(icon_name=None, tooltip_text='', relief=True, icon_size=<enum GTK_ICON_SIZE_BUTTON of type Gtk.IconSize>, label=None, popover=None, **kwargs)[source]
Bases:
gi.repository.Gtk.MenuButton
- Parameters
- class sublime_music.ui.common.IconToggleButton(icon_name, tooltip_text='', relief=False, icon_size=<enum GTK_ICON_SIZE_BUTTON of type Gtk.IconSize>, label=None, **kwargs)[source]
Bases:
gi.repository.Gtk.ToggleButton
- Parameters
- class sublime_music.ui.common.LoadError(entity_name, action, has_data, offline_mode)[source]
Bases:
gi.overrides.Gtk.Box
- class sublime_music.ui.common.RatingButtonBox(icon_rated='star-full', icon_unrated='star-empty', **kwargs)[source]
Bases:
gi.overrides.Gtk.Box
A simple GtkBox containing buttons that allow rating something. It doesn’t know what it’s rating just what the rating is when it changed
- MAX_VALUE = 5
- class sublime_music.ui.common.SongListColumn(header, text_idx, bold=False, align=0, width=None)[source]
Bases:
gi.overrides.Gtk.TreeViewColumn
- class sublime_music.ui.common.SpinnerImage(loading=True, image_name=None, spinner_name=None, image_size=None, **kwargs)[source]
Bases:
gi.repository.Gtk.Overlay
- Parameters
- __init__(loading=True, image_name=None, spinner_name=None, image_size=None, **kwargs)[source]
An image with a loading overlay.