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

def AmpacheTools::AmpacheGUI::AmpacheGUI::songs_on_activated (   self,
  widget,
  row,
  col 
)
The function that runs when the user double-clicks a song.

Definition at line 2084 of file AmpacheGUI.py.

                                                    :
            """The function that runs when the user double-clicks a song."""
            model = widget.get_model()
            
            song_title = model[row][1]
            song_id    = model[row][6]

            if self.playlist_mode == 0: # replace mode
                  list = []
                  for song in model:
                        list.append(song[6])
                  
                  song_num = row[0]
                  print "Sending this list of songs to player", list
                  self.audio_engine.play_from_list_of_songs(list, song_num)
            else: # add mode
                  self.audio_engine.insert_into_playlist(song_id)
                  self.update_playlist_window()


Generated by  Doxygen 1.6.0   Back to index