def populate(self, items): """ Populate items @param items """ if items and self._box.get_visible(): GLib.idle_add(self._add_items, items) else: LazyLoadingView.populate(self)
def populate(self, albums): """ Populate widget with album rows @param albums as [Album] """ if albums: self._lazy_queue = [] for child in self._box.get_children(): GLib.idle_add(child.destroy) self.__add_albums(list(albums)) else: LazyLoadingView.populate(self)