def add_album(self, album, is_last_album=False): self.window.notification.set_timeout(0) widget = ArtistAlbumWidget(self.artist, album, self.player, self.model, self.header_bar, self.selectionModeAllowed) self._coverSizeGroup.add_widget(widget.cover) self._songsGridSizeGroup.add_widget(widget.songsGrid) self._albumBox.pack_start(widget, False, False, 0) self.widgets.append(widget) if is_last_album: widget.connect('tracks-loaded', self._on_last_album_displayed)
def add_album(self, album, is_last_album=False): widget = ArtistAlbumWidget( album, self.player, self._model, self.header_bar, self.selectionModeAllowed, self._songsGridSizeGroup, self.header_bar ) self._coverSizeGroup.add_widget(widget.cover) self._albumBox.pack_start(widget, False, False, 0) self.widgets.append(widget) if is_last_album: widget.connect('tracks-loaded', self._on_last_album_displayed)
def _add_album(self, album, is_last_album=False): widget = ArtistAlbumWidget(album, self._player, self._model, self._header_bar, self._selection_mode_allowed, self._songs_grid_size_group, self._cover_size_group) self._cover_size_group.add_widget(widget.cover_stack._stack) self._album_box.pack_start(widget, False, False, 0) self._widgets.append(widget) if is_last_album: widget.connect('songs-loaded', self._on_last_album_displayed)
def _add_album(self, album): widget = ArtistAlbumWidget( album, self._player, self._model, self._selection_mode_allowed, self._songs_grid_size_group, self._cover_size_group) self.bind_property( 'selection-mode', widget, 'selection-mode', GObject.BindingFlags.BIDIRECTIONAL | GObject.BindingFlags.SYNC_CREATE) self._album_box.pack_start(widget, False, False, 0) self._widgets.append(widget) widget.connect('songs-loaded', self._on_album_displayed)
def _add_album(self, corealbum): widget = ArtistAlbumWidget(corealbum, self._selection_mode_allowed, self._songs_grid_size_group, self._cover_size_group) self.bind_property( 'selection-mode', widget, 'selection-mode', GObject.BindingFlags.BIDIRECTIONAL | GObject.BindingFlags.SYNC_CREATE) self._widgets.append(widget) widget.connect("song-activated", self._song_activated) return widget
def _add_album(self, album): widget = ArtistAlbumWidget(album, self._player, self._model, self._selection_mode_allowed, self._songs_grid_size_group, self._cover_size_group) self.bind_property( 'selection-mode', widget, 'selection-mode', GObject.BindingFlags.BIDIRECTIONAL | GObject.BindingFlags.SYNC_CREATE) self._album_box.pack_start(widget, False, False, 0) self._widgets.append(widget) widget.connect('songs-loaded', self._on_album_displayed)
def _add_album(self, corealbum): row = Gtk.ListBoxRow() row.props.selectable = False row.props.activatable = False widget = ArtistAlbumWidget( corealbum, self._songs_grid_size_group, self._cover_size_group) self.bind_property( 'selection-mode', widget, 'selection-mode', GObject.BindingFlags.BIDIRECTIONAL | GObject.BindingFlags.SYNC_CREATE) row.add(widget) widget.connect("song-activated", self._song_activated) return row