Cool, thanks.  Should a little variety to Freevo every
holiday.  Now we just need a full set of holiday
icons.....any artists in the group with some time?

Cheers,
-Rich

--- Aubin Paul <[EMAIL PROTECTED]> wrote:
> Thanks Rich, I've added it to CVS.
> 
> On Fri, Jul 04, 2003 at 09:05:41AM -0700, Rich C
> wrote:
> > I've attached a short holidays section to add to
> your
> > local_conf.py.  Also copied here.
> > 
> > HOLIDAYS = [ ('01-01',  'newyear.png'),
> >                        ('02-14', 
> 'valentine.png'),
> >                        ('05-07', 
> 'freevo_bday.png'), 
> >                                                   
>    
> >               
> >                        ('07-03',  'usa_flag.png'),
> 
> >                        ('07-04',  'usa_flag.png'),
> 
> >                        ('10-30',  'ghost.png'),   
>    
> >                   
> >                        ('10-31',  'pumpkin.png'), 
> 
> >                        ('12-21',  'snowman.png'),
> >                        ('12-25', 
> 'christmas.png')]
> > 
> > -Rich
> > 
> > --- Aubin Paul <[EMAIL PROTECTED]> wrote:
> > > I added the icons, but can you also send the 
> > > config.HOLIDAYS stuff so I can test it?
> > > 
> > > On Thu, Jul 03, 2003 at 11:23:35PM -0700, Rich C
> > > wrote:
> > > > Hello Aubin,
> > > > 
> > > > Here is the patch for idlebar.py and some
> holiday
> > > > icons.
> > > > 
> > > > The plugin needs the icons in:
> > > > freevo/skins/icons/holidays
> > > > 
> > > > To activate plugin:
> > > > plugin.activate('idlebar.holidays', level=40) 
> > > > 
> > > > -Rich
> > > > 
> > > > 
> > > > --- Aubin Paul <[EMAIL PROTECTED]> wrote:
> > > > > Hi Rich,
> > > > > 
> > > > > could you possibly make a diff? and maybe
> > > include
> > > > > some of your example
> > > > > images?
> > > > > 
> > > > > Aubin
> > > > > 
> > > > > On Thu, Jul 03, 2003 at 08:58:43AM -0700,
> Rich C
> > > > > wrote:
> > > > > > Hello,
> > > > > > 
> > > > > > Inspired by Google which changes it's
> Google
> > > logo
> > > > > > every holiday, I wrote a simple idlebar
> > > function
> > > > > to
> > > > > > show a user specified image on a given
> holiday
> > > (or
> > > > > any
> > > > > > date) of the year.  I've copied it below.
> > > > > > 
> > > > > > Cheers,
> > > > > > Rich
> > > > > > 
> > > > > > ---
> > > > > > # This class checks if the current date is
> a
> > > > > holiday
> > > > > > and will
> > > > > > # display a user specified icon for that
> > > holiday. 
> > > > >    
> > > > > >       
> > > > > > class holidays(IdleBarPlugin):
> > > > > >     def __init__(self):
> > > > > >         IdleBarPlugin.__init__(self)
> > > > > >    
> > > > > >     def get_holiday_icon(self):
> > > > > >         if not config.HOLIDAYS:
> > > > > >             return 0    
> > > > > >         else:
> > > > > >            # Creates a string which looks
> like
> > > > > "07-04"
> > > > > > meaning July 04
> > > > > >             todays_date =
> > > time.strftime('%m-%d')
> > > > > >             
> > > > > >             for i in config.HOLIDAYS:     
>    
> > >    
> > > > >    
> > > > > >       
> > > > > >                 holiday, icon = i
> > > > > >                 if todays_date == holiday:
> > > > > >                     return icon
> > > > > > 
> > > > > >     def draw(self, (type, object)):
> > > > > >         icon = self.get_holiday_icon()
> > > > > >         if icon:
> > > > > >             osd.drawbitmap(
> > > > > 'skins/icons/holidays/' +
> > > > > > icon, 585, 5)
> > > > > > ---
> > > > > > For config file:
> > > > > > HOLIDAYS = [ ('01-01',  'newyear.png'),
> > > > > >                        ('02-14', 
> > > > > 'valentine.png'),
> > > > > >                        ('07-04', 
> > > 'usa_flag.png'),
> > > > >    
> > > > > >                     
> > > > > >                        ('11-25', 
> > > > > 'thanksgiving.png'),
> > > > > >                        ('12-25', 
> > > > > 'christmas.png')]
> > > > > > 
> > > > > > __________________________________
> > > > > > Do you Yahoo!?
> > > > > > SBC Yahoo! DSL - Now only $29.95 per
> month!
> > > > > > http://sbc.yahoo.com
> > > > > > 
> > > > > > 
> > > > > >
> > > > >
> > > >
> > >
> >
>
-------------------------------------------------------
> > > > > > This SF.Net email sponsored by: Free
> pre-built
> > > > > ASP.NET sites including
> > > > > > Data Reports, E-commerce, Portals, and
> Forums
> > > are
> > > > > available now.
> > > > > > Download today and enter to win an XBOX or
> > > Visual
> > > > > Studio .NET.
> > > > > >
> > > > >
> > > >
> > >
> >
>
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> > > > > >
> > > _______________________________________________
> > > > > > Freevo-devel mailing list
> > > > > > [EMAIL PROTECTED]
> > > > > >
> > > > >
> > > >
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/freevo-devel
> > > > > 
> > > > > 
> > > > >
> > > >
> > >
> >
>
-------------------------------------------------------
> > > > > This SF.Net email sponsored by: Free
> pre-built
> > > > > ASP.NET sites including
> > > > > Data Reports, E-commerce, Portals, and
> Forums
> > > are
> > > > > available now.
> > > > > Download today and enter to win an XBOX or
> > > Visual
> > > > > Studio .NET.
> > > > >
> > > >
> > >
> >
>
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> > > > >
> _______________________________________________
> > > > > Freevo-devel mailing list
> > > > > [EMAIL PROTECTED]
> > > > >
> > > >
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/freevo-devel
> > > > 
> > > > 
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > http://sbc.yahoo.com
> > > 
> > > 
> > > 
> > >
> >
>
-------------------------------------------------------
> > > This SF.Net email sponsored by: Free pre-built
> > > ASP.NET sites including
> > > Data Reports, E-commerce, Portals, and Forums
> are
> > > available now.
> > > Download today and enter to win an XBOX or
> Visual
> > > Studio .NET.
> > >
> >
>
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> > > _______________________________________________
> > > Freevo-devel mailing list
> > > [EMAIL PROTECTED]
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/freevo-devel
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> Content-Description: holidays.txt
> > HOLIDAYS = [ ('01-01',  'newyear.png'),
> >                        ('02-14', 
> 'valentine.png'),
> >                        ('05-07', 
> 'freevo_bday.png'),                                 
>                                      
> >                        ('07-03',  'usa_flag.png'),
> 
> >                        ('07-04',  'usa_flag.png'),
> 
> >                        ('10-30',  'ghost.png'),   
>                       
> >                        ('10-31',  'pumpkin.png'), 
> 
> >                        ('12-21',  'snowman.png'),
> >                        ('12-25', 
> 'christmas.png')]
> 
> 
>
-------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built
> ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are
> available now.
> Download today and enter to win an XBOX or Visual
> Studio .NET.
>
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> Freevo-devel mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/freevo-devel


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to