Did I find the right examples for you? yes no

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

src/d/e/deepin-music-player-HEAD/plugins/mpris2/mpris_adapter.py   deepin-music-player(Download)
    def Seek(self, offset):
        position = Player.get_position()
        position += offset / MICROSECOND
        Player.seek(position, False)
 
    @dbus.service.method(ORG_MPRIS_MEDIAPLAYER2_PLAYER, in_signature='ox')
    def SetPosition(self, track_id, position):
        if track_id == self._get_trackid(Player.song):
            position /= MICROSECOND
            Player.seek(position)

src/d/e/deepin-music-player-HEAD/src/widget/timer.py   deepin-music-player(Download)
 
            if s.get_type() == "cue":
                Player.seek(s.get("seek", 0) + self.bar.get_value())
            else:    
                Player.seek(self.bar.get_value())

src/d/e/deepin-music-player-HEAD/src/widget/new_timer.py   deepin-music-player(Download)
 
            if s.get_type() == "cue":
                Player.seek(s.get("seek", 0) + self.bar.get_value())
            else:    
                Player.seek(self.bar.get_value())

src/d/e/deepin-music-player-HEAD/src/widget/lyrics_module.py   deepin-music-player(Download)
        if Player.song.get_type() == "cue":
            new_time += Player.song.get("seek", 0)
        Player.seek(new_time)        
        self.scroll_lyrics.set_progress(lyric_id, percentage)
        time.sleep(0.1)