Update of /cvsroot/freevo/freevo/WIP/Ruelle In directory sc8-pr-cvs1:/tmp/cvs-serv2795
Modified Files: freevoscreensaver.py Log Message: slideshows from fxd files Index: freevoscreensaver.py =================================================================== RCS file: /cvsroot/freevo/freevo/WIP/Ruelle/freevoscreensaver.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** freevoscreensaver.py 6 Jan 2004 19:59:45 -0000 1.4 --- freevoscreensaver.py 6 Jan 2004 23:17:50 -0000 1.5 *************** *** 10,13 **** --- 10,16 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.5 2004/01/06 23:17:50 mikeruelle + # slideshows from fxd files + # # Revision 1.4 2004/01/06 19:59:45 mikeruelle # remove games_items popup from showing *************** *** 52,55 **** --- 55,59 ---- import rc import event as em + import fxditem # Set to 1 for debug output *************** *** 79,85 **** #self.arg1 = '/usr/local/bin/screensaverstart' #self.arg2 = '/usr/local/bin/screensaverstop' ! self.saver_type = 'ssr' ! self.arg1 = '/usr/local/freevo_data/Images/blah.ssr' ! def eventhandler(self, event = None, menuw=None, arg=None): --- 83,95 ---- #self.arg1 = '/usr/local/bin/screensaverstart' #self.arg2 = '/usr/local/bin/screensaverstop' ! #self.saver_type = 'ssr' ! #self.arg1 = '/usr/local/freevo_data/Images/blah.ssr' ! self.saver_type = 'fxd' ! self.arg1 = '/usr/local/freevo_data/Images/saver.fxd' ! self.arg2 = 'image' ! #not working yet ! #self.saver_type = 'fxd' ! #self.arg1 = '/usr/local/freevo_data/Movies/saver.fxd' ! #self.arg2 = 'video' def eventhandler(self, event = None, menuw=None, arg=None): *************** *** 124,127 **** --- 134,145 ---- self.pl = Playlist('ScreenSaver', playlist=self.arg1, display_type='image', repeat=True) self.pl.play(menuw=self.menuw) + elif self.saver_type == 'fxd': + mylist = fxditem.mimetype.parse(None, [self.arg1], display_type=self.arg2) + if len(mylist) > 0: + self.pl = mylist[0] + self.pl.repeat = 1 + self.pl.play(menuw=self.menuw) + else: + print "MFR DEBUG: fxd blew up trying to parse?" else: print "MFR DEBUG: Unknown saver type to start." *************** *** 136,139 **** --- 154,159 ---- os.system('%s' % self.arg2) elif self.saver_type == 'ssr': + rc.post_event(em.STOP) + elif self.saver_type == 'fxd': rc.post_event(em.STOP) else: ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog