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
FontChoicewithfamily,size,weight,slant,underline, andoverstrikeattributes, orNoneif canceled.- Return type:
FontChoice | None