Files
Serhiy Storchaka 593fe91e2f [3.13] gh-156961: Fix tkinter.font.Font for a font name returned as a Tcl object (GH-157028) (GH-157405)
Tk can return a font name as a Tcl object, for example from
ttk.Style().lookup("TButton", "font"), Menu.entrycget("font"),
ttk.Entry.cget("font"), or the default value in the result of
configure().  Such an object does not compare equal to a string, so it
was not recognized as the name of an existing named font.  Keep it as
is, so that it is passed back to Tk, and only convert it where it is
compared with a string.

(cherry picked from commit 62cbd34df7)
2026-09-13 08:25:18 +00:00
..