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)
    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.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/src/widget/playlist.py   deepin-music-player(Download)
    def save_current_playlist(self, *args):    
        index = 0
        player_source = Player.get_source()
        for i, item in enumerate(self.category_list.get_items()):
            if item.song_view == player_source:

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)
 
 

src/d/m/dmusic-plugin-baidumusic-HEAD/baidumusic/music_playlist.py   dmusic-plugin-baidumusic(Download)
    def save_status(self, *args):
        index = 0
        player_source = Player.get_source()
        for i, item in enumerate(self.category_list.get_items()):
            if item.song_view == player_source: