解决win跨平台小bug

This commit is contained in:
cxykevin 2024-04-15 11:37:50 +08:00
parent ea7f8d7de5
commit 18eec61c26
1 changed files with 2 additions and 1 deletions

View File

@ -248,6 +248,7 @@ class Entry:
def __bind_event(self): def __bind_event(self):
def closecallback(obj): def closecallback(obj):
if (self.__is_hover == 1): if (self.__is_hover == 1):
if sys.platform.startswith("linux"):
self.top.destroy() self.top.destroy()
self.__is_hover = 0 self.__is_hover = 0
self.canvas.focus_force() self.canvas.focus_force()