sublime_music.ui.player_controls module

class sublime_music.ui.player_controls.PlayerControls[source]

Bases: gi.repository.Gtk.ActionBar

Defines the player controls panel that appears at the bottom of the window.

__init__()[source]
connecting_icon_index = 0
connecting_to_device_token = 0
cover_art_update_order_token = 0
create_playback_controls()[source]
Return type

gi.overrides.Gtk.Box

create_rating_buttons()[source]
create_rating_play_queue_volume()[source]
Return type

gi.overrides.Gtk.Box

create_song_display()[source]
Return type

gi.overrides.Gtk.Box

current_device = None
current_play_queue: Tuple[str, ...] = ()
current_playing_index: Optional[int] = None
current_song = None
editing: bool = False
editing_play_queue_song_list: bool = False
offline_mode = False
on_device_click(_)[source]
Parameters

_ (Any) –

on_play_queue_button_press(tree, event)[source]
Parameters
  • tree (Any) –

  • event (gi.overrides.Gdk.EventButton) –

Return type

bool

on_play_queue_click(_)[source]
Parameters

_ (Any) –

on_play_queue_model_row_move(*args)[source]
on_rating_clicked(_, rating)[source]
Parameters

rating (int) –

on_rating_removed(_)[source]
on_song_activated(t, idx, c)[source]
Parameters
  • t (Any) –

  • idx (gi.overrides.Gtk.TreePath) –

  • c (Any) –

on_volume_change(scale)[source]
Parameters

scale (gi.repository.Gtk.Scale) –

play_queue_update_order_token = 0
reordering_play_queue_song_list: bool = False
update(app_config, force=False)[source]
Parameters
update_cover_art(cover_art_filename, app_config, force=False, order_token=None, is_partial=False)[source]
Parameters
update_device_list(app_config)[source]
Parameters

app_config (sublime_music.config.AppConfiguration) –

update_rating(rating)[source]
Parameters

rating (int | None) –

update_scrubber(current, duration, song_stream_cache_progress)[source]
Parameters