Get names of defined fonts (as a tuple)
(root=None)
| 192 | |
| 193 | |
| 194 | def names(root=None): |
| 195 | "Get names of defined fonts (as a tuple)" |
| 196 | if root is None: |
| 197 | root = tkinter._get_default_root('use font.names()') |
| 198 | return root.tk.splitlist(root.tk.call("font", "names")) |
| 199 | |
| 200 | |
| 201 | # -------------------------------------------------------------------- |