Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

Preview available fonts

   1  
   2  >>> from appuifw import *
   3  >>> fonts = available_fonts()
   4  >>> fonts.sort()
   5  >>> t = Text()
   6  >>> for f in fonts:
   7  ...   t.font = f
   8  ...   t.add(f + ' ')
   9  ...
  10  >>> app.body = t

See screenshot.
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS