comparison 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
comparison
equal deleted inserted replaced
31:4fba4ccab723 32:f97eb9f0c207
4 class playerThread(Thread): 4 class playerThread(Thread):
5 def __init__(self, lists): 5 def __init__(self, lists):
6 Thread.__init__(self) 6 Thread.__init__(self)
7 7
8 self.shutdown = False 8 self.shutdown = False
9 self.playing = False
10
11 self.last = None
9 12
10 self.lists = lists 13 self.lists = lists
14
15 def play(self, s):
16 print "about to play %s" % (str(s),)
11 17
12 def run(self): 18 def run(self):
13 while not self.shutdown: 19 while not self.shutdown:
14 time.sleep(0.5) 20 time.sleep(0.5)
15 21