FontFamilyListbox

class ttkwidgets.font.FontFamilyListbox(master=None, callback=None, **kwargs)[source]

Bases: ttkwidgets.scrolledlistbox.ScrolledListbox

ScrolledListbox listing all font families available on the system with a Scrollbar on the right with the option of a callback when double clicked and a property to get the font family name.

__init__(master=None, callback=None, **kwargs)[source]

Create a FontFamilyListbox.

Parameters:
  • master (widget) – master widget
  • callback (function) – callable object with one argument: the font family name
  • kwargs – keyword arguments passed to ScrolledListbox, in turn passed to tk.Listbox
selection
Selection property.
Returns:None if no font is selected and font family name if one is selected.
Return type:None or str