Syntax: index
'''
print self.pointer+1, 'of', len(self.current_list)
-
-
- def help_next(self):
- print '''
-NEXT
-Go the next curve in the playlist.
-If we are at the last curve, we come back to the first.
------
-Syntax: next, n
- '''
- def do_next(self,args):
- try:
- self.current.curve.close_all()
- except:
- print 'No curve file loaded, currently!'
- print 'This should not happen, report to http://code.google.com/p/hooke'
- return
-
- if self.pointer == (len(self.current_list)-1):
- self.pointer=0
- print 'Playlist finished; back to first curve.'
- else:
- self.pointer+=1
-
- self.current=self.current_list[self.pointer]
- self.do_plot(0)
-
-
- def help_n(self):
- self.help_next()
- def do_n(self,args):
- self.do_next(args)
-
- def help_previous(self,args):
- print '''
-PREVIOUS
-Go to the previous curve in the playlist.
-If we are at the first curve, we jump to the last.
--------
-Syntax: previous, p
- '''
- def do_previous(self,args):
- try:
- self.current.curve.close_all()
- except:
- print 'No curve file loaded, currently!'
- print 'This should not happen, report to http://code.google.com/p/hooke'
- return
- if self.pointer == 0:
- self.pointer=(len(self.current_list)-1)
- print 'Start of playlist; jump to last curve.'
- else:
- self.pointer-=1
-
- self.current=self.current_list[self.pointer]
- self.do_plot(args)
-
-
- def help_p(self):
- self.help_previous()
- def do_p(self,args):
- self.do_previous(args)
-
-