From 8aa63921371b376fde35e3293637fee0c455a259 Mon Sep 17 00:00:00 2001 From: Nick Moore Date: Tue, 19 Mar 2024 17:37:39 +1100 Subject: [PATCH] Revert "Another attempt at fixing #29" This reverts commit c74a07164a459cd5b44419c999f3c229c228bcab. --- countess/gui/unicode.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/countess/gui/unicode.py b/countess/gui/unicode.py index 6848bc9..08bcdd6 100644 --- a/countess/gui/unicode.py +++ b/countess/gui/unicode.py @@ -1,12 +1,6 @@ import tkinter as tk -import tkinter.font as tk_font - -# We found a shared remote system where these unicode icons are -# displayed as escaped strings, literally "\u2795" on what should -# be the "+" button. This is very confusing, so as a workaround -# check if the string "\u2795" (one unicode codepoint) renders over -# three em wide, in which case the Unicode support is fonts are broken. +# Tcl support for unicode starts in version 8.1, April 1999. def unicode_is_broken(): root = tk.Tk() @@ -15,8 +9,7 @@ def unicode_is_broken(): root.destroy() return is_broken - -if unicode_is_broken(): +if tk.TclVersion < 8.1: UNICODE_CHECK = "Y" UNICODE_UNCHECK = "N" UNICODE_CROSS = "X"