From: W. Trevor King Date: Wed, 12 May 2010 18:54:48 +0000 (-0400) Subject: Removed next/previous commands from hooke_cli X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8fd5e026884fc4a9a0f29c83317990ca268faffd;p=hooke.git Removed next/previous commands from hooke_cli Superseded by hooke.plugin.playlist commands. --- 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) - -