Logo Search packages:      
Sourcecode: viridian version File versions  Download package

def AmpacheTools::AmpacheGUI::AmpacheGUI::albums_on_activated (   self,
  widget,
  row,
  col 
)

Selection Methods (Double Click)

The function that runs when the user double-clicks an album.

Definition at line 2063 of file AmpacheGUI.py.

                                                     :
            """The function that runs when the user double-clicks an album."""
            
            model = widget.get_model()
            
            album_name = model[row][0]
            album_id   = model[row][1]
            
            if self.playlist_mode == 0: # replace mode
                  # get all songs in the current songs menu and play them
                  list = []
                  for song in self.song_list_store:
                        list.append(song[6])
                        
                  print "Sending this list of songs to player", list
                  self.audio_engine.play_from_list_of_songs(list)
            else: # add mode
                  for song in self.song_list_store:
                        self.audio_engine.insert_into_playlist(song[6])
                  self.update_playlist_window()


Generated by  Doxygen 1.6.0   Back to index