@@ -420,7 +420,7 @@ def set_frcst_icon(forecast):
420420 img .set_from_file (icon_loc + 'weather-snow-large.svg' )
421421 elif icon_id == "50n" :
422422 img .set_from_file (icon_loc + 'weather-fog-large.svg' )
423-
423+
424424 return img
425425
426426# ---- sets icon for current weather ---- #
@@ -430,7 +430,7 @@ def forecast_icon(icon, size, frcst):
430430 global situa_img
431431
432432 situa_img .set_pixel_size (size )
433-
433+
434434 if icon == "01d" :
435435 situa_img .set_from_file (icon_loc + 'weather-clear-large.svg' )
436436 css_class = "clear_sky"
@@ -444,42 +444,42 @@ def forecast_icon(icon, size, frcst):
444444 situa_img .set_from_file (icon_loc + 'weather-showers-scattered-large.svg' )
445445 css_class = 'showers_scattered'
446446 elif icon == "10d" :
447- situa_img .set_from_icon_name (icon_loc + 'weather-showers-large.svg' )
447+ situa_img .set_from_file (icon_loc + 'weather-showers-large.svg' )
448448 css_class = 'showers_large'
449449 elif icon == "11d" :
450- situa_img .set_from_icon_name (icon_loc + 'weather-storm-large.svg' )
450+ situa_img .set_from_file (icon_loc + 'weather-storm-large.svg' )
451451 css_class = 'storm'
452452 elif icon == "13d" :
453- situa_img .set_from_icon_name (icon_loc + 'weather-snow-large.svg' )
453+ situa_img .set_from_file (icon_loc + 'weather-snow-large.svg' )
454454 css_class = 'snow'
455455 elif icon == "50d" :
456- situa_img .set_from_icon_name (icon_loc + 'weather-fog-large.svg' )
456+ situa_img .set_from_file (icon_loc + 'weather-fog-large.svg' )
457457 css_class = 'fog'
458458
459459 # -------- night icons --------- #
460460 elif icon == "01n" :
461- situa_img .set_from_icon_name (icon_loc + 'weather-clear-night-large.svg' )
461+ situa_img .set_from_file (icon_loc + 'weather-clear-night-large.svg' )
462462 css_class = 'clear_sky_night'
463463 elif icon == "02n" or icon == "03n" :
464- situa_img .set_from_icon_name (icon_loc + 'weather-few-clouds-night-large.svg' )
464+ situa_img .set_from_file (icon_loc + 'weather-few-clouds-night-large.svg' )
465465 css_class = 'few_clouds_night'
466466 elif icon == "04n" :
467- situa_img .set_from_icon_name (icon_loc + 'weather-overcast-large.svg' )
467+ situa_img .set_from_file (icon_loc + 'weather-overcast-large.svg' )
468468 css_class = 'overcast_night'
469469 elif icon == "09n" :
470- situa_img .set_from_icon_name (icon_loc + 'weather-showers-scattered-large.svg' )
470+ situa_img .set_from_file (icon_loc + 'weather-showers-scattered-large.svg' )
471471 css_class = 'showers_scattered_night'
472472 elif icon == "10n" :
473- situa_img .set_from_icon_name (icon_loc + 'weather-showers-large.svg' )
473+ situa_img .set_from_file (icon_loc + 'weather-showers-large.svg' )
474474 css_class = 'showers_large_night'
475475 elif icon == "11n" :
476- situa_img .set_from_icon_name (icon_loc + 'weather-storm-large.svg' )
476+ situa_img .set_from_file (icon_loc + 'weather-storm-large.svg' )
477477 css_class = 'storm_night'
478478 elif icon == "13n" :
479- situa_img .set_from_icon_name (icon_loc + 'weather-snow-large.svg' )
479+ situa_img .set_from_file (icon_loc + 'weather-snow-large.svg' )
480480 css_class = 'snow_night'
481481 elif icon == "50n" :
482- situa_img .set_from_icon_name (icon_loc + 'weather-fog-large.svg' )
482+ situa_img .set_from_file (icon_loc + 'weather-fog-large.svg' )
483483 css_class = 'fog_night'
484484
485485
0 commit comments