Update of /cvsroot/ap-python/python/examples/apcontrol
In directory usw-pr-cvs1:/tmp/cvs-serv14340/examples/apcontrol
Modified Files:
Makefile.am README
Added Files:
sort.py
Log Message:
Bind Playlist::Sort method.
--- NEW FILE: sort.py ---
#!/usr/bin/env python
# Sort
# $Id: sort.py,v 1.1 2002/07/29 12:38:52 sjah Exp $
import apcontrol, sys
s = apcontrol.Session ()
if s.is_running ():
s.sort (sys.argv[1])
else:
print 'Session 0 is not running'
Index: Makefile.am
===================================================================
RCS file: /cvsroot/ap-python/python/examples/apcontrol/Makefile.am,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Makefile.am 6 Jul 2002 16:17:58 -0000 1.5
--- Makefile.am 29 Jul 2002 12:38:52 -0000 1.6
***************
*** 1 ****
! EXTRA_DIST = info2.py info.py np.py add.py clear.py seek.py speed.py README pan.py volume.py pause.py unpause.py
--- 1,2 ----
! EXTRA_DIST = info2.py info.py np.py add.py clear.py seek.py speed.py\
! README pan.py volume.py pause.py unpause.py sort.py
Index: README
===================================================================
RCS file: /cvsroot/ap-python/python/examples/apcontrol/README,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** README 6 Jul 2002 16:12:56 -0000 1.3
--- README 29 Jul 2002 12:38:52 -0000 1.4
***************
*** 12,15 ****
--- 12,16 ----
pause.py Pause playback.
unpause.py Unpause playback.
+ sort.py Sort playlist items.
For more information look at the samples code.
|