更改windows下的事件行为
Build and Publish / Run (push) Successful in 48s Details

This commit is contained in:
cxykevin 2024-04-22 12:03:20 +08:00
parent 1de2bda297
commit 548c3a5315
1 changed files with 4 additions and 4 deletions

View File

@ -287,7 +287,7 @@ class Entry:
self.inputobj.bind("<ButtonRelease-1>", pressrelease_v)
self.show_label.bind("<ButtonRelease-1>", pressrelease_v)
self.__input_textvar.trace_add("write", update_text)
if (sys.platform.startswith("linux")):
self.frames.bind("<Leave>", closecallback)
else:
self.inputobj.bind_all("<FocusOut>", closecallback)
# if (sys.platform.startswith("linux")):
self.frames.bind("<Leave>", closecallback)
# else:
# self.inputobj.bind_all("<FocusOut>", closecallback)