def _create_disc_box(self, disc_nr, album_model): disc_box = DiscBox(album_model) disc_box.set_disc_number(disc_nr) disc_box.props.show_durations = False disc_box.props.show_favorites = False disc_box.props.show_song_numbers = True disc_box.connect('song-activated', self._song_activated) return disc_box
def _create_disc_box(self, disc_nr, disc_songs): disc_box = DiscBox(self._model) disc_box.set_songs(disc_songs) disc_box.set_disc_number(disc_nr) disc_box.set_columns(1) disc_box.show_song_numbers(False) disc_box.connect('song-activated', self._song_activated) disc_box.connect('selection-toggle', self._selection_mode_toggled) return disc_box
def _create_widget(self, disc): disc_box = DiscBox(disc) disc_box.connect('song-activated', self._song_activated) self._disc_list_box.bind_property( "selection-mode", disc_box, "selection-mode", GObject.BindingFlags.BIDIRECTIONAL | GObject.BindingFlags.SYNC_CREATE) return disc_box
def _create_disc_box(self, disc_nr, disc_tracks): disc_box = DiscBox(self._model) disc_box.set_tracks(disc_tracks) disc_box.set_disc_number(disc_nr) disc_box.set_columns(1) disc_box.show_song_numbers(False) disc_box.connect("track-activated", self._track_activated) disc_box.connect("selection-toggle", self._selection_mode_toggled) return disc_box
def create_disc_box(self, disc_nr, disc_tracks): disc_box = DiscBox(self._model) disc_box.set_tracks(disc_tracks) disc_box.set_disc_number(disc_nr) disc_box.set_columns(2) disc_box.show_duration(False) disc_box.show_favorites(False) disc_box.connect('track-activated', self._track_activated) disc_box.connect('selection-toggle', self._selection_mode_toggled) return disc_box
def _create_disc_box(self, disc_nr, disc_songs): disc_box = DiscBox(self._model) disc_box.set_songs(disc_songs) disc_box.set_disc_number(disc_nr) disc_box.props.columns = 1 disc_box.props.show_durations = True disc_box.props.show_favorites = True disc_box.props.show_song_numbers = False disc_box.connect('song-activated', self._song_activated) return disc_box