Пример #1
0
 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()
Пример #2
0
 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)
Пример #3
0
 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()
Пример #4
0
 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()
Пример #5
0
 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()
Пример #6
0
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()
Пример #7
0
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()
Пример #8
0
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()
Пример #9
0
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()
Пример #10
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 = ArtworkSearch(album.artist_ids[0],
                                  album)
     self._widget.show()
     self.add(self._widget)
     self._widget.populate()