Mercurial > vixm
view vixm/player.py @ 34:8028f2addb00 master
Destroy all traces of xmms
author | Josef "Jeff" Sipek <jeffpc@josefsipek.net> |
---|---|
date | Fri, 03 Nov 2006 23:34:59 -0500 |
parents | f97eb9f0c207 |
children | a7d370f326df |
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.current = None self.lists = lists def play(self, s): print "about to play %s" % (str(s),) self.current = s def run(self): while not self.shutdown: time.sleep(0.5)