def __init__(self, artist_id): """ Init Popover @param album as album """ CommonPopover.__init__(self) self._widget = ArtworkSearch(artist_id, None) self._widget.show() self.add(self._widget) self._widget.populate()
def _on_map_artwork(self, widget): """ Load on map @param widget as Gtk.Grid """ # We only search with first artist, should be ok search = ArtworkSearch(self._artist_ids[0], None) search.show() search.populate() widget.add(search)
def __init__(self, artist_id): """ Init Popover @param album as album """ Gtk.Popover.__init__(self) widget = ArtworkSearch(artist_id, None) widget.show() self.add(widget) self.set_size_request(700, 400) widget.populate()
def __init__(self, album): """ Init Popover @param album as album """ CommonPopover.__init__(self) # FIXME We only search with first artist self._widget = ArtworkSearch(album.artist_ids[0], album) self._widget.show() self.add(self._widget) self._widget.populate()
def __init__(self, album): """ Init Popover @param album as album """ Gtk.Popover.__init__(self) # FIXME We only search with first artist widget = ArtworkSearch(album.artist_ids[0], album) widget.show() self.add(widget) self.set_size_request(700, 400) widget.populate()
class ArtworkPopover(CommonPopover): """ Popover with artist-artwork from the web """ def __init__(self, artist_id): """ Init Popover @param album as album """ CommonPopover.__init__(self) self._widget = ArtworkSearch(artist_id, None) self._widget.show() self.add(self._widget) self._widget.populate()
class CoversPopover(CommonPopover): """ Popover with album covers from the web """ def __init__(self, album): """ Init Popover @param album as album """ if not album.artist_ids: return CommonPopover.__init__(self) # FIXME We only search with first artist self._widget = ArtworkSearch(album.artist_ids[0], album) self._widget.show() self.add(self._widget) self._widget.populate()
class CoversPopover(CommonPopover): """ Popover with album covers from the web """ def __init__(self, album): """ Init Popover @param album as album """ CommonPopover.__init__(self) # FIXME We only search with first artist self._widget = ArtworkSearch(album.artist_ids[0], album) self._widget.show() self.add(self._widget) self._widget.populate()
def __init__(self, album): """ Init Popover @param album as album """ CommonPopover.__init__(self) if not album.artist_ids: self._widget = None return # FIXME We only search with first artist self._widget = ArtworkSearch(album.artist_ids[0], album) self._widget.show() self.add(self._widget) self._widget.populate()