Mercurial > vixm
comparison vixm/ui.py @ 40:06b5a7db3d19 pure
Some cleanup, got to next song implemented
author | Josef "Jeff" Sipek <jeffpc@josefsipek.net> |
---|---|
date | Sat, 04 Nov 2006 23:11:49 -0500 |
parents | a7d370f326df |
children | 2bf81d95246a |
comparison
equal
deleted
inserted
replaced
39:9995931be5b1 | 40:06b5a7db3d19 |
---|---|
42 ui.start() | 42 ui.start() |
43 | 43 |
44 while not play.shutdown: | 44 while not play.shutdown: |
45 # check which song we are playing now | 45 # check which song we are playing now |
46 if not play.playing: | 46 if not play.playing: |
47 try: | 47 play.play_next(lists) |
48 # pop song off the PRIO queue | |
49 next = lists[playlist.LIST_PRIO].pop() | |
50 except IndexError: | |
51 # no song to pop | |
52 next = lists[playlist.LIST_DEFAULT].next() | |
53 pass | |
54 except ValueError: | |
55 print "WTF is going on?!" | |
56 | |
57 play.play(next) | |
58 | 48 |
59 # sleep | 49 # sleep |
60 time.sleep(0.5) | 50 time.sleep(0.5) |
61 | 51 |
62 class uiThread(Thread): | 52 class uiThread(Thread): |