Hi,

On Sat, 19 Jan 2019 20:07:07 -0500
Ben <bc...@speedymail.org> wrote:

> 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?

according to
https://groups.google.com/forum/#!topic/comp.lang.tcl/OJqYYzCgKQo
there is some work in progress with Tcl, otoh even if you install the
latest Tcl/Tk 8.7 it might be difficult to get past this TclError which
seems to be hardcoded into Tkinter (with Tcl I don't get any error here,
just a placeholder where the unicode character should be).

Regards

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

On my planet, to rest is to rest -- to cease using energy.  To me, it
is quite illogical to run up and down on green grass, using energy,
instead of saving it.
                -- Spock, "Shore Leave", stardate 3025.2
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to