changeset 2:80a717f97cef

Basic definition of a playlist class
author Josef "Jeff" Sipek <jeffpc@josefsipek.net>
date Sat, 12 Aug 2006 20:21:06 -0400
parents 6c5b9827b117
children dd00b69169c6
files vixm/playlist.py
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vixm/playlist.py	Sat Aug 12 20:21:06 2006 -0400
@@ -0,0 +1,15 @@
+# a playlist definition
+
+class playlist:
+	def __init__(self):
+		self.__list = []
+	
+	def enqueue(self, song)
+		self.__list.append(song)
+	
+	def dequeue(self, song)
+		self.__list.remove(song)
+	
+	def pop(self):
+		self.__list.pop(0)
+