@@ -378,7 +378,26 @@ def __init__(self, forcing_files):
378378
379379 ##########################
380380 try :
381- if datetime .now ().month == 12 and datetime .now ().day > 10 :
381+ from dateutil .easter import easter
382+ easter_sunday = easter (datetime .now ().year )
383+ easter = (datetime .now ().date () > easter_sunday - timedelta (days = 8 ) and
384+ datetime .now ().date () < easter_sunday + timedelta (days = 2 ))
385+ christmas = datetime .now ().month == 12 and datetime .now ().day > 10
386+ if easter :
387+ self .output .configure (bg = '#FFF9C4' )
388+ self .duration .configure (bg = '#FFF9C4' )
389+ self .seed .configure (bg = '#FFF9C4' )
390+ self .top .configure (bg = '#FFD6E7' )
391+ self .start .configure (bg = '#B3E5FC' )
392+ self .end .configure (bg = '#B3E5FC' )
393+ self .end_t .configure (bg = '#B3E5FC' )
394+ startlabel .configure (bg = '#B3E5FC' )
395+ endlabel .configure (bg = '#B3E5FC' )
396+ check_seed .configure (bg = '#B3E5FC' )
397+ img = ImageTk .PhotoImage (Image .open (
398+ opendrift .test_data_folder +
399+ '../../docs/opendrift_logo_easter.png' ).resize ((200 , 200 )))
400+ elif christmas :
382401 img = ImageTk .PhotoImage (Image .open (
383402 opendrift .test_data_folder +
384403 '../../docs/hohohOpenDrift.jpg' ).resize ((200 , 200 )))
@@ -387,7 +406,7 @@ def __init__(self, forcing_files):
387406 img = ImageTk .PhotoImage (Image .open (
388407 opendrift .test_data_folder +
389408 '../../docs/opendrift_logo.png' ))
390- self .logo_image = tk .Label (self .logo , image = img )
409+ self .logo_image = tk .Label (self .logo , image = img , bd = 0 )
391410 self .logo_image .image = img
392411 self .logo_image .grid (row = 0 , column = 0 )
393412 except Exception as e :
0 commit comments