Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/p/y/python-mpd2-HEAD/examples/stats.py   python-mpd2(Download)
    ## Print out MPD stats & disconnect
    print('\nCurrent MPD state:')
    pp.pprint(client.status())
 
    print('\nMusic Library stats:')

src/i/n/indimpc-HEAD/indimpc.py   indimpc(Download)
        prefs_vbox.append_page(playback_modes, gtk.Label("Playback"))
        self.repeat_check = gtk.CheckButton("Repeat")
        self.repeat_check.set_active(bool(int(self.mpdclient.status()["repeat"])))
        self.repeat_check.connect("toggled", lambda a: self.mpdclient.repeat(int(not bool(int(self.mpdclient.status()["repeat"])))))
        playback_modes.pack_start(self.repeat_check, fill=False, expand=False)
        self.random_check = gtk.CheckButton("Random")
        self.random_check.set_active(bool(int(self.mpdclient.status()["random"])))
        self.random_check.connect("toggled", lambda a: self.mpdclient.random(int(not bool(int(self.mpdclient.status()["random"])))))
        playback_modes.pack_start(self.random_check, fill=False, expand=False)
        self.consume_check = gtk.CheckButton("Consume")
        self.consume_check.set_active(bool(int(self.mpdclient.status()["consume"])))
        self.consume_check.connect("toggled", lambda a: self.mpdclient.consume(int(not bool(int(self.mpdclient.status()["consume"])))))
        playback_modes.pack_start(self.consume_check, fill=False, expand=False)

src/p/i/pipobot-modules-HEAD/botmpd/libmpd/BotMPD.py   pipobot-modules(Download)
    def current(self):
        song = self.currentsong()
        playlist = self.status()
 
        res = self.currentsongf() + "\n"
    def nextplaylist(self, nb):
        current = self.currentsong()
        playlist = self.playlistinfo()
        deb = int(current['pos'])
        end = int(self.status()["playlistlength"])
        else:
            selection = l
        playlist = self.status()
        deb = int(playlist["playlistlength"])
        for elt in selection:

src/a/u/autoplay-HEAD/autoplay.py   autoplay(Download)
          lastMpd = clock
          if radioMode:
            if client.status()["consume"] == "0":
              cursongid = client.status()["songid"]
              for song in client.playlistid():
              lastMpd = 0
 
          if client.status()['state'] == "play":
            times = client.status()['time'].split(":")
            pos = int(times[0])

src/t/h/theonebuttonaudiobookplayer-HEAD/tobabp.py   theonebuttonaudiobookplayer(Download)
        mpdConnect(client, CON_ID)
 
        status = client.status()
        print status
 
                        loadMusic(client, CON_ID, device)
                        mpdConnect(client, CON_ID)
                        print client.status()
                        flashLED(0.1, 5)
                        # wait until thumb drive is umplugged again
                        if timebuttonisstillpressed == 0:
                                # button has been pressed, pause or unpause now
                                if client.status()["state"] == "stop":
                                        client.play()
                                else:

src/w/h/WhergBot2.0-HEAD/Plugins/PyMpd/Main.py   WhergBot2.0(Download)
def mpdshow_cb(t=True):
	if mpd_connect():
		current_song = client.currentsong()
		current_status = client.status()
		song_filename = os.path.basename(current_song["file"])

src/p/o/powerline-status-0.0.1/powerline/segments/common.py   powerline-status(Download)
			if not now_playing:
				return
			status = client.status()
			client.close()
			client.disconnect()

src/p/o/powerline-HEAD/powerline/segments/common.py   powerline(Download)
			if not now_playing:
				return
			status = client.status()
			client.close()
			client.disconnect()

src/d/y/DynaMPD-HEAD/dynampd.py   DynaMPD(Download)
        try:
            while True:
                state = self.status()['state']
                if state == 'play':
                    elapsed = self.status()['time'].split(':')[0]

src/t/a/Talho-HEAD/modules/mpdmod.py   Talho(Download)
        current_track = client.currentsong()
        if "pos" in current_track:
            status = client.status()
            result = _("now playing track #%s @ %s seconds") % (current_track["pos"].decode("utf-8"), status["time"] if "time" in status else "???")
        else:

  1 | 2  Next