Did I find the right examples for you? yes no

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

src/d/e/deepin-music-player-HEAD/src/dbus_manager.py   deepin-music-player(Download)
    def IsPlaying(self):    
        return not Player.is_paused()
 
    @dbus.service.method(SERVICE_NAME)
    def Prev(self):
    def GetPath(self):
        if not Player.is_paused():
            song = Player.song    
            return song.get_path()
        else:
            return ""
 
    @dbus.service.method(SERVICE_NAME, None, "s")
    def GetTitle(self):
        if not Player.is_paused():
    def GetArtist(self):
        if not Player.is_paused():
            song = Player.song
            return song.get_str("artist")
        else:
            return ""
 
    @dbus.service.method(SERVICE_NAME, None, "s")
    def GetUri(self):
        if not Player.is_paused():

src/d/e/deepin-music-player-HEAD/plugins/mpris2/mpris_adapter.py   deepin-music-player(Download)
    def CanPause(self):
        # MPRIS -- return true even if currently paused
        if Player.is_playable() and not Player.is_paused():
            return True
        else:
    def PlaybackStatus(self):
        if Player.song is None:
            return "Stopped"
        elif Player.is_paused():
            return "Paused"

src/d/e/deepin-music-player-HEAD/src/widget/instance.py   deepin-music-player(Download)
    def force_quit(self, *args):    
        self.loginfo("Start quit...")
        self.app_hide_all()
        Player.save_state()
        if not Player.is_paused(): Player.pause()
    def get_play_control_menu(self):    
        menu_items = []
        if Player.is_paused():
            state_label = _("Play")
            state_pixbuf = self.get_pixbuf_group("play")

src/d/e/deepin-music-player-HEAD/src/widget/tray.py   deepin-music-player(Download)
    def update_menu(self):    
        menu_items = []
        if Player.is_paused():
            pixbuf_group = self.get_pixbuf_group("play")
            status_label = _("Play")