Did I find the right examples for you? yes no

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

src/d/e/deepin-music-player-HEAD/src/widget/song_view.py   deepin-music-player(Download)
    def set_current_source(self):    
        if Player.get_source() != self:
            Player.set_source(self)
            Dispatcher.emit("save_current_list")
 

src/d/e/deepin-music-player-HEAD/src/widget/webcast_view.py   deepin-music-player(Download)
            Player.play_new(item.get_webcast(), seek=item.get_webcast().get("seek", 0))
            if Player.get_source() != self:
                Player.set_source(self)
 
    def on_button_press_event(self, widget, event):
            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)
 
    def set_highlight_webcast(self, webcast):

src/d/e/deepin-music-player-HEAD/plugins/musicfm/radio_view.py   deepin-music-player(Download)
                Player.play_new(songs[0])
                self.current_index = 0
                Player.set_source(self)
 
    def get_next_song(self, maunal=False):        

src/d/e/deepin-music-player-HEAD/src/widget/playlist.py   deepin-music-player(Download)
        self.menu_source_id = self.current_item.song_view.connect("right-press-items", self.popup_detail_menu)
 
        Player.set_source(self.current_item.song_view)
        self.right_box.add(self.current_item.get_list_widget())
 

src/d/m/dmusic-plugin-baidumusic-HEAD/baidumusic/music_view.py   dmusic-plugin-baidumusic(Download)
    def set_current_source(self):        
        if Player.get_source() != self:
            Player.set_source(self)