def _add_items(self, items, *args):
     """
         Add artists to the view
         Start lazy loading
         @param items as [(int, str, str)]
     """
     if App().window.is_adaptive:
         FlowBoxView._add_items(self, items, ArtSize.LARGE)
     else:
         FlowBoxView._add_items(self, items, ArtSize.BIG)
Exemple #2
0
 def _add_items(self, radio_ids):
     """
         Add radios to the view
         Start lazy loading
         @param radio ids as [int]
     """
     widget = FlowBoxView._add_items(self, radio_ids, self.__radios)
     if widget is not None:
         widget.connect("overlayed", self.on_overlayed)
Exemple #3
0
 def _add_items(self, item_ids, *args):
     """
         Add albums to the view
         Start lazy loading
         @param item ids as [int]
     """
     widget = FlowBoxView._add_items(self, item_ids, self._view_type)
     if widget is not None:
         widget.connect("overlayed", self.on_overlayed)
Exemple #4
0
 def _add_items(self, albums):
     """
         Add albums to the view
         Start lazy loading
         @param albums as [Album]
     """
     widget = FlowBoxView._add_items(self, albums, self.__genre_ids,
                                     self.__artist_ids, self._view_type)
     if widget is not None:
         widget.connect("overlayed", self.on_overlayed)
Exemple #5
0
 def _add_items(self, playlist_ids, *args):
     """
         Add albums to the view
         Start lazy loading
         @param playlist_ids as [int]
     """
     self._remove_placeholder()
     widget = FlowBoxView._add_items(self, playlist_ids, self.__obj,
                                     self._view_type)
     if widget is not None:
         widget.connect("overlayed", self.on_overlayed)
Exemple #6
0
 def _add_items(self, items, *args):
     """
         Add artists to the view
         @param items as [(int, str, str)]
     """
     FlowBoxView._add_items(self, items, self.__view_type)