3 """This class implements a pointer for ZukeBox playlist
4 A seeker response to a request about the current position, next
7 def __init__(self, playlist):
8 if playlist is not None:
9 self.playlist = playlist
10 # the first time the previous position is the current
11 self.current = playlist.current
12 self.previous = self.current
15 def get_next_pos(self):
16 next = self.current + 1
19 def get_previous_pos(self):
27 return self.playlist.pop(self.next)
30 self.get_previous_pos()
31 return self.playlist.pop(self.previous)