Did I find the right examples for you? yes no

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

src/d/e/deepin-music-player-HEAD/plugins/mpris2/mpris_adapter.py   deepin-music-player(Download)
    def PlayPause(self):
        Player.playpause()
 
    @dbus.service.method(ORG_MPRIS_MEDIAPLAYER2_PLAYER)
    def Previous(self):

src/d/e/deepin-music-player-HEAD/src/dbus_manager.py   deepin-music-player(Download)
    def PlayPause(self):
        Player.playpause()
        return "Successful command "
 
    @dbus.service.method(SERVICE_NAME)

src/d/e/deepin-music-player-HEAD/src/mmkeys_wrap.py   deepin-music-player(Download)
    def on_gnome_mmkey(self, app, key):    
        if app == self.application:
            if key == "Play":
                Player.playpause()
            if key == "PlayPause":    
                Player.playpause()
    def mm_playpause(self, a, b):    
        Player.playpause()

src/d/e/deepin-music-player-HEAD/src/widget/tray.py   deepin-music-player(Download)
 
        elif event.button == 2:
            Player.playpause()
 
        elif event.button == 3:

src/d/e/deepin-music-player-HEAD/src/widget/lyrics_module.py   deepin-music-player(Download)
            app_theme.get_pixbuf("lyric/pause_press.png"),
            )
        self.__id_signal_play = self.playpause_button.connect("toggled", lambda w: Player.playpause())
        prev = self.__create_button("previous")
        next = self.__create_button("next")

src/d/e/deepin-music-player-HEAD/src/widget/mini.py   deepin-music-player(Download)
    def on_player_playpause(self, widget):    
        if Player.song:
            Player.playpause()
 
    def __swap_play_status(self, obj, active):    

src/d/e/deepin-music-player-HEAD/src/widget/headerbar.py   deepin-music-player(Download)
    def on_player_playpause(self, widget):    
        if Player.song:
            Player.playpause()
 
    def change_lyrics_status(self, widget):