[Tkinter-discuss] ttk.Label unicode characters

Ben bcail at speedymail.org
Sat Jan 19 20:07:07 EST 2019


Hi,

Is there any way to make a Label display every Unicode character, or are we just stuck until Tcl/Tk fully supports all of unicode? 

Here's my example code:
import tkinter as tk
from tkinter import ttk
root = tk.Tk()
ttk.Label(root, text='Test \U0001d306 String').grid(row=0, column=0)
root.mainloop()

And the exception:
_tkinter.TclError: character U+1d306 is above the range (U+0000-U+FFFF) allowed by Tcl

System: Linux, Python 3.6.7, Tk 8.6

Is there anything I can do to be able to display that character?

Thanks for any pointers.
-Ben


More information about the Tkinter-discuss mailing list