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