[Tkinter-discuss] Unicode range

Serhiy Storchaka storchaka at gmail.com
Sun Apr 4 17:57:24 EDT 2021


04.01.21 11:09, Vasilis Vlachoudis пише:
> how can I "replace/strip" unicode characters that are out of the
> accepted tk range before inserting them to Text()?
> 
>   File "/usr/lib/python3.6/tkinter/__init__.py", line 3272, in insert
>     self.tk.call((self._w, 'insert', index, chars) + args)
> _tkinter.TclError: character U+1c784 is above the range (U+0000-U+FFFF)
> allowed by Tcl

Upgrade Python. Since 3.7.6 Tkinter supports characters outside of the
range U+0000-U+FFFF.



More information about the Tkinter-discuss mailing list