How to use symbol font in tkinter button ? python How to use symbol font in tkinter button ? python tkinter tkinter

How to use symbol font in tkinter button ? python


Relying on a special font for producing those symbols may not be the best way. Instead, you should consider directly using the respective unicode characters. You can find the character codes, e.g., on the Wikipedia pages for alpha, beta, etc.

Minimal example:

root = tk.Tk()symbol = {'alpha':945, 'beta':946, 'gamma': 947, 'delta': 948, 'epsilon':949}for s in symbol:    tk.Button(root, text=unichr(symbol[s])).pack()root.mainloop()