示例#1
0
 def row_activated(self, treeview, path, view_column):
     # TODO: wait for all tracks to load
     _id = self.tracks.get_track_id(path)
     playlist = Playlist(self.tracklist)
     playlist.jump_to(_id)
     wnd = open_playerwindow()
     wnd.play_tracks(playlist)
示例#2
0
文件: featured.py 项目: krig/jamaendo
 def open_item(self, item):
     if isinstance(item, jamaendo.Album):
         wnd = ShowAlbum(item)
         wnd.show_all()
     elif isinstance(item, jamaendo.Artist):
         wnd = ShowArtist(item)
         wnd.show_all()
     elif isinstance(item, jamaendo.Track):
         playlist = Playlist(self.items)
         playlist.jump_to(item.ID)
         wnd = open_playerwindow()
         wnd.play_tracks(playlist)
     elif isinstance(item, jamaendo.Tag):
         self.start_tag_fetcher(item.ID)