Update of /cvsroot/ap-python/python/examples/aptk
In directory usw-pr-cvs1:/tmp/cvs-serv31578
Modified Files:
Makefile.am
Added Files:
playlist.py
Log Message:
Add playlist example.
--- NEW FILE: playlist.py ---
#!/usr/local/bin/alsaplayer-python -I
# playlist.py
# Copyright (C) 2002 Evgeny Chukreev <co...@ec...>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# $Id: playlist.py,v 1.1 2002/07/16 17:11:33 sjah Exp $
#
__author__ = "Evgeny Chukreev <co...@ec...>"
__date__ = "$Date: 2002/07/16 17:11:33 $"
__version__ = "$Revision: 1.1 $"
__license__ = "GNU"
import alsaplayer, aptk, gtk
pl = alsaplayer.get_playlist ()
cp = pl.get_coreplayer ()
def delete_event (foo, bar):
gtk.mainquit ();
win = aptk.playlist.PlaylistWindow (pl)
win.connect ("delete_event", delete_event)
win.show ()
gtk.threads_enter ()
gtk.mainloop ()
gtk.threads_leave ()
Index: Makefile.am
===================================================================
RCS file: /cvsroot/ap-python/python/examples/aptk/Makefile.am,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Makefile.am 16 May 2002 10:22:49 -0000 1.2
--- Makefile.am 16 Jul 2002 17:11:32 -0000 1.3
***************
*** 1,3 ****
EXTRA_DIST = c_pan.xpm f_play.xpm gtkplayer.py l_pan.xpm mute.xpm next.xpm\
pause.xpm play.xpm prev.xpm r_pan.xpm r_play.xpm stop.xpm panel.py\
! play-sm.xpm stop-sm.xpm prev-sm.xpm next-sm.xpm
--- 1,3 ----
EXTRA_DIST = c_pan.xpm f_play.xpm gtkplayer.py l_pan.xpm mute.xpm next.xpm\
pause.xpm play.xpm prev.xpm r_pan.xpm r_play.xpm stop.xpm panel.py\
! play-sm.xpm stop-sm.xpm prev-sm.xpm next-sm.xpm playlist.py
|