sublime_music.ui.albums module
- class sublime_music.ui.albums.AlbumsGrid(*args, **kwargs)[source]
Bases:
gi.repository.Gtk.Overlay
Defines the albums panel.
- current_models: List[sublime_music.ui.albums.AlbumsGrid._AlbumModel] = []
- current_query: sublime_music.adapters.adapter_base.AlbumSearchQuery = AlbumSearchQuery(type=<Type.RANDOM: 0>, year_range=(2020, 2030), genre=<sublime_music.adapters.adapter_base.AlbumSearchQuery._Genre object>, _strhash=None)
- error_dialog = None
- next_page_fn = None
- on_child_activated(flowbox, child)[source]
- Parameters
flowbox (gi.repository.Gtk.FlowBox) –
child (gi.overrides.Gtk.Widget) –
- on_grid_resize(flowbox, rect)[source]
- Parameters
flowbox (gi.repository.Gtk.FlowBox) –
rect (gi.repository.Gdk.Rectangle) –
- update(order_token, app_config=None, force=False)[source]
- Parameters
order_token (int) –
app_config (Optional[sublime_music.config.AppConfiguration]) –
force (bool) –
- update_grid(order_token, use_ground_truth_adapter=False, force_grid_reload_from_master=False)[source]
- update_params(app_config)[source]
- Parameters
app_config (sublime_music.config.AppConfiguration) –
- Return type
- class sublime_music.ui.albums.AlbumsPanel[source]
Bases:
gi.overrides.Gtk.Box
- __init__()[source]
Initializer for a GObject based classes with support for property sets through the use of explicit keyword arguments.
- offline_mode = False
- populate_genre_combo(app_config=None, force=False)[source]
- Parameters
app_config (Optional[sublime_music.config.AppConfiguration]) –
force (bool) –
- populating_genre_combo = False
- update(app_config=None, force=False)[source]
- Parameters
app_config (Optional[sublime_music.config.AppConfiguration]) –
force (bool) –