From 18eec61c26fa75dfc5983ec06ffd4ae4b0943deb Mon Sep 17 00:00:00 2001 From: cxykevin Date: Mon, 15 Apr 2024 11:37:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3win=E8=B7=A8=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E5=B0=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- magictk/entry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/magictk/entry.py b/magictk/entry.py index f87218d..c0ff967 100644 --- a/magictk/entry.py +++ b/magictk/entry.py @@ -248,7 +248,8 @@ class Entry: def __bind_event(self): def closecallback(obj): if (self.__is_hover == 1): - self.top.destroy() + if sys.platform.startswith("linux"): + self.top.destroy() self.__is_hover = 0 self.canvas.focus_force()