[Tkinter-discuss] Can't get sorted list of fonts on my system

Bob Greschke bob at passcal.nmt.edu
Thu Dec 14 23:54:00 CET 2006


> fonts=list(tkFont.families())
> fontlist=fonts.sort()
> print fontlist

Yer gonna kick yourself. :)

fonts = list(tkFont.families())
fonts.sort()
print fonts

.sort() just sorts in place.  It doesn't return anything.

Bob



More information about the Tkinter-discuss mailing list