bootstack.ask_font#

bootstack.ask_font(*, title='', default_font='body', parent=None)#

Show a font selector dialog.

Parameters:
  • title (str) – Dialog window title.

  • default_font (str) – Font token to show initially (e.g. 'body', 'code', 'heading-lg'). Defaults to 'body'. See Typography.

  • parent (Any) – Parent widget. Defaults to the active root window.

Returns:

A FontChoice with family, size, weight, slant, underline, and overstrike attributes, or None if canceled.

Return type:

FontChoice | None