[Jahshaka-cvs] jah/jahtools/jbatch jbatch_ui.py,1.3,1.4
Status: Beta
Brought to you by:
jahshaka
From: Charles Y. <lil...@us...> - 2007-04-29 14:37:38
|
Update of /cvsroot/jahshaka/jah/jahtools/jbatch In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv1180 Modified Files: jbatch_ui.py Log Message: + current/checkpoint example usage Index: jbatch_ui.py =================================================================== RCS file: /cvsroot/jahshaka/jah/jahtools/jbatch/jbatch_ui.py,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- jbatch_ui.py 22 Apr 2007 17:29:35 -0000 1.3 +++ jbatch_ui.py 29 Apr 2007 14:37:23 -0000 1.4 @@ -77,8 +77,7 @@ jbatch_client.status( self.status_cb, self.host, self.port ) def filter_changed( self, event = None ): - if self.execute( [ "rpn" ] ).strip( ) != "[]": - self.execute( [ "stop", "dup" ] + self.filters( ) + [ "start" ] ) + self.execute( [ "current", "checkpoint" ] + self.filters( ) + [ "start", "stop" ] ) def execute( self, commands ): result = "" @@ -121,7 +120,7 @@ list = [ ] for f in files: list += [ f ] - self.execute( list + [ "filter:playlist", "slots=%d" % len( list ), "dup" ] + self.filters( ) + [ "start" ] ) + self.execute( list + [ "filter:playlist", "slots=%d" % len( list ), "checkpoint" ] + self.filters( ) + [ "start" ] ) def append( self ): files = tkFileDialog.askopenfilenames( ) @@ -129,7 +128,7 @@ list = [ ] for f in files: list += [ f ] - self.execute( [ "drop" ] + list + [ "filter:playlist", "slots=%d" % len( list ), "dup" ] + self.filters( ) + [ "start" ] ) + self.execute( list + [ "filter:playlist", "slots=%d" % len( list ), "checkpoint" ] + self.filters( ) + [ "start" ] ) def next( self ): self.execute( [ "stop", "play" ] ) |