FontFamilyDropdown¶
-
class
ttkwidgets.font.
FontFamilyDropdown
(master=None, callback=None, **kwargs)[source]¶ Bases:
ttkwidgets.autocomplete.autocompletecombobox.AutocompleteCombobox
A dropdown menu to select a font family with callback support and selection property.
-
__init__
(master=None, callback=None, **kwargs)[source]¶ Create a FontFamilyDropdown.
Parameters: - master (widget) – master widget
- callback (function) – callable object with single argument: font family name
- kwargs – keyword arguments passed on to the
AutocompleteCombobox
initializer
-
selection
¶ Selection property.
Returns: None if no font is selected and font family name if one is selected. Return type: None or str
-