Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/d/e/deepin-music-player-HEAD/src/widget/song_view.py   deepin-music-player(Download)
            if song.exists():
                self.set_highlight_item(item)                
                Player.play_new(item.get_song(), seek=item.get_song().get("seek", None))
                self.set_current_source()
 
                self.queue_draw()
                self.set_highlight_song(songs[0])
                Player.play_new(self.highlight_item.get_song(), seek=self.highlight_item.get_song().get("seek", 0))
                self.set_current_source()
 
            if select_item.exists():
                self.highlight_item = self.items[self.select_rows[0]]
                Player.play_new(self.highlight_item.get_song(), 
                                seek=self.highlight_item.get_song().get("seek", None))
                self.set_current_source()
                item = self.get_valid_items()[0]
                self.set_highlight_item(item)
                Player.play_new(item.get_song(), seek=item.get_song().get("seek", None))
 
    def on_motion_notify_item(self, widget, item, column, item_x, item_y):

src/d/e/deepin-music-player-HEAD/src/widget/webcast_view.py   deepin-music-player(Download)
    def play_item(self, item):            
        if item:
            self.set_highlight(item)
            Player.play_new(item.get_webcast(), seek=item.get_webcast().get("seek", 0))
            if Player.get_source() != self:
            self.queue_draw()
            self.set_highlight_webcast(webcasts[0])
            Player.play_new(self.highlight_item.get_webcast(), seek=self.highlight_item.get_webcast().get("seek", 0))
            if Player.get_source() != self:
                Player.set_source(self)

src/d/e/deepin-music-player-HEAD/plugins/musicfm/radio_view.py   deepin-music-player(Download)
            self.playlist = songs
            if songs and play:
                Player.play_new(songs[0])
                self.current_index = 0
                Player.set_source(self)

src/d/m/dmusic-plugin-baidumusic-HEAD/baidumusic/music_view.py   dmusic-plugin-baidumusic(Download)
        if play:
            # play song now
            Player.play_new(song)
 
            # set self as current global playlist