bootstack.dialogs.FontChoice#

class bootstack.dialogs.FontChoice(family, size, weight, slant, underline, overstrike)#

Bases: NamedTuple

A font selected from FontDialog or ask_font.

family: str#

The font family name.

overstrike: bool#

True if the font is struck through.

size: int#

The point size.

slant: str#

The slant — 'roman' or 'italic'.

underline: bool#

True if the font is underlined.

weight: str#

The weight — 'normal' or 'bold'.

count(value, /)#

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)#

Return first index of value.

Raises ValueError if the value is not present.