Skip to content

Eva API

ttkbootstrap_icons_eva.icon

EvaStyles = Literal['fill', 'outline'] module-attribute

EvaFontProvider

Bases: BaseFontProvider

Provider for the Eva Icons dataset.

Eva provides two styles - "fill" and "outline" - encoded via the "-outline" suffix. A single font file backs both styles; style selection is performed by simple name predicates.

Attributes:

Name Type Description
name

Provider identifier ("eva").

display_name

Human-friendly name ("Eva Icons").

default_style

Default style ("fill").

styles

Map of style -> {filename, predicate}.

format_glyph_name(glyph_name) staticmethod

Display friendly name for font name

EvaIcon

Bases: Icon

Convenience icon for the Eva Icons glyph set.

Resolves the provided name (optionally with a style) using EvaFontProvider, then initializes the base Icon with the resolved glyph.

Parameters:

Name Type Description Default
name str

Glyph name. May be a friendly name (e.g. "award") or a raw glyph (e.g. "award-outline"). If you pass a conflicting style (e.g. name ends with "-outline" but you set style="fill"), a ValueError is raised.

required
size int

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

24
color str

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

'black'
style EvaStyles | None

Optional style override: "fill", "outline". If omitted, the provider's default style is used. When name already encodes a style suffix (e.g. "-outline"), that suffix takes precedence.

None

Raises:

Type Description
ValueError

If the name cannot be resolved for the requested style.

ttkbootstrap_icons_eva.provider

EvaFontProvider

Bases: BaseFontProvider

Provider for the Eva Icons dataset.

Eva provides two styles - "fill" and "outline" - encoded via the "-outline" suffix. A single font file backs both styles; style selection is performed by simple name predicates.

Attributes:

Name Type Description
name

Provider identifier ("eva").

display_name

Human-friendly name ("Eva Icons").

default_style

Default style ("fill").

styles

Map of style -> {filename, predicate}.

format_glyph_name(glyph_name) staticmethod

Display friendly name for font name