示例#1
0
 def __init__(self, artist_id):
     """
         Init Popover
         @param album as album
     """
     CommonPopover.__init__(self)
     self._widget = ArtworkSearchWidget(artist_id, None)
     self._widget.show()
     self.add(self._widget)
     self._widget.populate()
示例#2
0
 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 = ArtworkSearchWidget(album.artist_ids[0], album)
     self._widget.show()
     self.add(self._widget)
     self._widget.populate()