update click config motion

翻訳/文字起こし機能が動作中はコンフィグを変更できないように変更
This commit is contained in:
misyaguziya
2023-07-01 23:54:49 +09:00
parent 6b7230ff4f
commit 248317a1a5
2 changed files with 26 additions and 0 deletions

View File

@@ -546,6 +546,8 @@ class ToplevelWindowConfig(customtkinter.CTkToplevel):
self.entry_message_format.grid(row=row, column=1, columnspan=1, padx=padx, pady=pady, sticky="nsew")
self.entry_message_format.bind("<Any-KeyRelease>", self.entry_message_format_callback)
self.protocol("WM_DELETE_WINDOW", self.delete_window)
def slider_transparency_callback(self, value):
self.parent.wm_attributes("-alpha", value/100)
self.parent.TRANSPARENCY = value
@@ -772,6 +774,12 @@ class ToplevelWindowConfig(customtkinter.CTkToplevel):
else:
pass
def delete_window(self):
self.parent.checkbox_translation.configure(state="normal")
self.parent.checkbox_transcription_send.configure(state="normal")
self.parent.checkbox_transcription_receive.configure(state="normal")
self.parent.config_window.destroy()
def entry_message_format_callback(self, event):
value = self.entry_message_format.get()
if len(value) > 0: