Skip to content

Weather Icons API

ttkbootstrap_icons_weather.icon

WeatherFontProvider

Bases: BaseFontProvider

Initialize the provider

WeatherIcon

Bases: Icon

Convenience icon for the Weather Icon glyph set.

Resolves the provided name using WeatherProvider, then initializes the base Icon with the resolved glyph.

Parameters:

Name Type Description Default
name str

glyph name.

required
size int

Pixel size of the rasterized image (default: 24).

24
color str

Foreground color used to render the glyph (default: "black").

'black'

Raises:

Type Description
ValueError

If the name cannot be resolved for the requested style.

ttkbootstrap_icons_weather.provider

WeatherFontProvider

Bases: BaseFontProvider

Initialize the provider