-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to get an alphabetical list of the available fonts on my
system for use in a Tkinter application.

This code returns an unsorted tuple of the fonts:

fonts = tkFont.families()

To get a sorted list, I've assembled the following snippet, based on
code in idlelib:


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

However, this code doesn't work. "print fontlist" returns the output
"None" in my console, and no list of fonts is displayed in my application.

Any ideas on what I'm doing wrong?

- --
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFgdB6EsLm8HXyq4sRAsmdAJ9D3xSg+DX9x2eAkrlwmxrnibLUugCfSiGO
KRy6zKYEX6asU+hsjPYYXV4=
=MYSE
-----END PGP SIGNATURE-----
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to