[WIP/TEST] Controller : モデルのロード処理をスレッドに変更

・モデルの切り替え時や翻訳機能有効時にリスタートボタンの表示タイミングが微妙な為改修の必要あり
This commit is contained in:
misyaguziya committed 2024-01-19 18:27:27 +09:00
1 parent a1b53dc2b0
commit f48581dcd8
2 files changed
+22 -7

No files matched your search

+10 -3
View File
@@ -326,11 +326,18 @@ class _CreateDropdownMenuWindow(CTkToplevel):
def _withdraw(self, e=None):
self.withdraw()
if self.BIND_CONFIGURE_FUNC_ID in self.attach_widget.winfo_toplevel().bind():
try:
self.attach_widget.winfo_toplevel().unbind("<Configure>", self.BIND_CONFIGURE_FUNC_ID)
self.attach_widget.unbind("<Unmap>", self.BIND_UNMAP_FUNC_ID)
if self.BIND_BUTTON_1_FUNC_ID in self.attach_widget.winfo_toplevel().bind():
except Exception:
pass
try:
self.attach_widget.unbind("<Unmap>", self.BIND_UNMAP_FUNC_ID)
except Exception:
pass
try:
self.attach_widget.winfo_toplevel().unbind("<Button-1>", self.BIND_BUTTON_1_FUNC_ID)
except Exception:
pass
self.hide = True