Mercurial > vixm
view vixm/player.py @ 32:f97eb9f0c207 master
Add random song selection for default queue
author | Josef "Jeff" Sipek <jeffpc@josefsipek.net> |
---|---|
date | Fri, 03 Nov 2006 23:26:35 -0500 |
parents | 860c891de6bb |
children | 8028f2addb00 |
line wrap: on
line source
import time from threading import Thread class playerThread(Thread): def __init__(self, lists): Thread.__init__(self) self.shutdown = False self.playing = False self.last = None self.lists = lists def play(self, s): print "about to play %s" % (str(s),) def run(self): while not self.shutdown: time.sleep(0.5)