From d43c888b4c68e1abd9a3fdfe19186ad56f4f9a26 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 12 May 2010 14:54:48 -0400 Subject: [PATCH] Removed next/previous commands from hooke_cli Superseded by hooke.plugin.playlist commands. --- hooke/hooke_cli.py | 64 ---------------------------------------------- 1 file changed, 64 deletions(-) diff --git a/hooke/hooke_cli.py b/hooke/hooke_cli.py index 51e56a8..4a5aca3 100644 --- a/hooke/hooke_cli.py +++ b/hooke/hooke_cli.py @@ -226,67 +226,3 @@ If the curve is not in the current playlist, it politely asks if we want to add 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) - - -- 2.26.2