CoverArt Browser
v2.0
Browse your cover-art albums in Rhythmbox
|
Public Member Functions | |
def | __init__ |
def | store |
def | add |
def | remove |
def | add_album_to_artist |
def | remove |
def | contains |
def | get |
def | get_albums |
def | get_all |
def | get_from_path |
def | get_path |
def | get_from_ext_db_key |
def | show |
def | sort |
Public Attributes | |
album_manager | |
Static Public Attributes | |
dictionary | columns |
Model that contains artists, keeps them sorted, filtered and provides an external `Gtk.TreeModel` interface to use as part of a Gtk interface. The `Gtk.TreeModel` haves the following structure: column 0 -> string containing the artist name column 1 -> pixbuf of the artist's cover. column 2 -> instance of the artist or album itself. column 3 -> boolean that indicates if the row should be shown column 4 -> blank text column to pad the view correctly column 5 -> markup containing formatted text column 6 -> blank text for the expander column
Definition at line 109 of file coverart_artistview.py.
def coverart_artistview.ArtistsModel.add | ( | self, | |
artist | |||
) |
Add an artist to the model. :param artist: `Artist` to be added to the model.
Definition at line 193 of file coverart_artistview.py.
def coverart_artistview.ArtistsModel.add_album_to_artist | ( | self, | |
artist, | |||
albums | |||
) |
Add an album to the artist in the model. :param artist: `Artist` for the album to be added to (i.e. the parent) :param album: array of `Album` which are the children of the Artist
Definition at line 255 of file coverart_artistview.py.
def coverart_artistview.ArtistsModel.contains | ( | self, | |
artist_name | |||
) |
Indicates if the model contains a specific artist. :param artist_name: `str` name of the artist.
Definition at line 414 of file coverart_artistview.py.
def coverart_artistview.ArtistsModel.get | ( | self, | |
artist_name | |||
) |
Returns the requested Artist. :param artist_name: `str` name of the artist.
Definition at line 422 of file coverart_artistview.py.
def coverart_artistview.ArtistsModel.get_albums | ( | self, | |
artist_name | |||
) |
Returns the displayed albums for the requested artist :param artist_name: `str` name of the artist.
Definition at line 430 of file coverart_artistview.py.
def coverart_artistview.ArtistsModel.get_all | ( | self | ) |
Returns a collection of all the artists in this model.
Definition at line 455 of file coverart_artistview.py.
def coverart_artistview.ArtistsModel.get_from_ext_db_key | ( | self, | |
key | |||
) |
Returns the requested artist. :param key: ext_db_key
Definition at line 475 of file coverart_artistview.py.
def coverart_artistview.ArtistsModel.get_from_path | ( | self, | |
path | |||
) |
Returns the Artist or Album referenced by a `Gtk.TreeModelSort` path. :param path: `Gtk.TreePath` referencing the artist.
Definition at line 461 of file coverart_artistview.py.
def coverart_artistview.ArtistsModel.remove | ( | self, | |
artist | |||
) |
Removes this artist from the model. :param artist: `Artist` to be removed from the model.
Definition at line 403 of file coverart_artistview.py.
def coverart_artistview.ArtistsModel.show | ( | self, | |
artist_name, | |||
show | |||
) |
filters/unfilters an artist, making it visible to the publicly available model's `Gtk.TreeModel` :param artist: str containing the name of the artist to show or hide. :param show: `bool` indcating whether to show(True) or hide(False) the artist.
Definition at line 488 of file coverart_artistview.py.
dictionary coverart_artistview.ArtistsModel::columns [static] |
{'tooltip': 0, 'pixbuf': 1, 'artist_album': 2, 'show': 3, 'empty': 4, 'markup': 5, 'expander': 6}
Definition at line 130 of file coverart_artistview.py.